/*
Theme Name: Industrial Corp
Description: Корпоративна тема для промислової компанії.
Author: Gemini
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --primary: #807b40;
    --primary-light: #bfbc9f;
    --text-main: #2c2c2c;
    --bg-light: #f4f4f2;
    --white: #ffffff;
    --border: #EEE;
}

body { margin: 0; font-family: 'Inter', sans-serif; color: var(--primary); background: var(--white); line-height: 1.6; }
        h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 700; margin: 0 0 20px 0; }
        img { max-width: 100%; height: auto; display: block; }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

        /* Header */
        header { background: var(--white); padding: 20px 0; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; }
        .header-wrap { display: flex; justify-content: space-between; align-items: center; }
        .logo { font-size: 1.5rem; font-weight: bold; color: var(--text-main); text-transform: uppercase; letter-spacing: 1px; }
        .btn-contact { background: var(--primary); color: white; padding: 10px 25px; text-decoration: none; border-radius: 4px; font-weight: 600; transition: 0.3s; font-size: 15pt; font-weight: bold; }
        .btn-contact:hover { background: var(--primary-light); }

        /* Hero */
        .hero {
            background: radial-gradient(rgba(157, 140, 66, 0.1), rgba(230, 218, 191, 0.25)), linear-gradient(#9D8C42, #807B40);
            background-size: cover; background-position: center; 
            color: white; padding: 100px 0; text-align: center;
        }
        .hero h1 { font-size: 3.5rem; margin-bottom: 15px; }
        .hero p.subtitle { font-size: 1.25rem; max-width: 700px; margin: 0 auto 50px auto; }

        .hero-info-bar { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 40px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.2); }
        .hero-info-item { display: flex; align-items: center; gap: 15px; background: rgba(255, 255, 255, 0.08); padding: 12px 25px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(5px); }
        .hero-icon { width: 28px; height: 28px; fill: var(--white); }
        .hero-text span { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
        .hero-text strong { font-size: 1.1rem; color: white; font-weight: 600; }

        /* Sections General */
        section { padding: 80px 0; }
        .section-head { text-align: center; margin-bottom: 60px; }
        .section-head h2 { font-size: 2.5rem; position: relative; display: inline-block; padding-bottom: 15px; }
        .section-head h2::after { content: ""; display: block; width: 80px; height: 4px; background: var(--primary); margin: 0 auto; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); }

        /* Services Grid */
        .category-block { margin-bottom: 100px; }
        .category-block:last-child { margin-bottom: 0; }
        .category-header { display: flex; align-items: center; margin-bottom: 30px; background: var(--bg-light); padding: 20px 30px; border-left: 6px solid var(--primary); border-radius: 0 8px 8px 0; }
        .category-header h3 { margin: 0; font-size: 1.8rem; color: var(--primary); }

        .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
        .card { background: white; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: all 0.3s ease; height: 100%; display: flex; flex-direction: column; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
        .card:hover { transform: translateY(-7px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--primary); }
        .card-img-wrap { height: 200px; overflow: hidden; position: relative; background: #eee; }
        .card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
        .card:hover .card-img { transform: scale(1.05); }
        .card-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; justify-content: flex-start; background: #fff; text-align: center; }
        .card-title { font-size: 1.1rem; margin: 0 0 10px 0; color: var(--text-main); font-weight: 700; }
        .card-desc { font-size: 0.9rem; color: #666; margin: 0; line-height: 1.5; }

        /* --- CAROUSEL SECTION (PORTFOLIO) --- */
        .portfolio-section { background: radial-gradient(rgba(157, 140, 66, 0.1), rgba(230, 218, 191, 0.25)), linear-gradient(#9D8C42, #807B40); color: white; overflow: hidden; }
        .portfolio-section .section-head h2 { color: white; }
        .portfolio-section .section-head p { color: white; }
        
        .carousel-wrapper { position: relative; padding: 0 50px; } /* Padding for buttons */
        .carousel-container { overflow: hidden; cursor: grab; }
        .carousel-track {
            display: flex;
            gap: 20px;
            transition: transform 0.4s ease-out;
        }
        .portfolio-card {
            min-width: 350px;
            flex-shrink: 0;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            position: relative;
        }
        .portfolio-img { width: 100%; height: 250px; object-fit: cover; }
        .portfolio-info {
            position: absolute; bottom: 0; left: 0; right: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
            padding: 20px; color: white;
            transform: translateY(100%); transition: transform 0.3s ease;
        }
        .portfolio-card:hover .portfolio-info { transform: translateY(0); }
        .portfolio-info h4 { margin: 0; font-size: 1.1rem; }
        
        /* Carousel Buttons */
        .carousel-btn {
            position: absolute; top: 50%; transform: translateY(-50%);
            width: 40px; height: 40px;
            background: var(--primary); border: none; border-radius: 50%;
            color: white; cursor: pointer; z-index: 10;
            display: flex; align-items: center; justify-content: center;
            transition: background 0.2s;
        }
        .carousel-btn:hover { background: var(--primary-light); }
        .carousel-btn.prev { left: 0; }
        .carousel-btn.next { right: 0; }

        /* Quality Section */
        .quality-section { background: var(--bg-light); text-align: center; }
        .quality-box {
            background: white; border: 2px solid var(--primary); padding: 40px; max-width: 800px; margin: 0 auto; position: relative;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        }
        .quality-box::before {
            content: "ISO"; position: absolute; top: -25px; left: 50%; transform: translateX(-50%);
            background: var(--primary); color: white; width: 50px; height: 50px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.9rem;
            box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        }
        .iso-list { display: inline-block; background: #eef0eb; padding: 10px 20px; border-radius: 4px; font-weight: bold; color: black; margin-top: 15px; }

        /* Advantages Section */
        .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; margin-top: 40px; }
        .feature-item { display: flex; align-items: flex-start; gap: 20px; }
        .feature-icon-box { min-width: 50px; height: 50px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .feature-icon-box svg { width: 24px; height: 24px; fill: white; }
        .feature-content h4 { margin: 0 0 8px 0; font-size: 1.15rem; color: var(--text-main); }
        .feature-content p { font-size: 0.95rem; color: #555; margin: 0; line-height: 1.5; }

        .delivery-banner {
            background: #2c2c2c; color: white; padding: 30px; margin-top: 60px; border-radius: 8px;
            display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between;
        }
        .delivery-logos { font-weight: bold; color: white; letter-spacing: 1px; }

        footer { background: radial-gradient(rgba(157, 140, 66, 0.1), rgba(230, 218, 191, 0.25)), linear-gradient(#9D8C42, #807B40); color: white; padding: 60px 0; text-align: center; }
        
        @media (max-width: 768px) {
            .hero-info-bar { flex-direction: column; align-items: center; gap: 15px; }
            .hero-info-item { width: 100%; max-width: 300px; justify-content: center; }
            .hero h1 { font-size: 2.5rem; }
            .carousel-wrapper { padding: 0; }
            .carousel-btn { display: none; } /* On mobile swipe is better (but here just scroll) */
            .carousel-container { overflow-x: scroll; }
        }