/* ============================================
   ZIO Chemical - Global Styles
   ============================================ */

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn-primary {
    display: inline-block;
    background: #e67e22;
    color: #fff;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    transition: all 0.3s;
    border: 2px solid #e67e22;
    cursor: pointer;
}
.btn-primary:hover { background: transparent; color: #e67e22; }

.btn-outline {
    display: inline-block;
    background: transparent;
    color: #fff;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    border: 2px solid #fff;
    transition: all 0.3s;
    cursor: pointer;
}
.btn-outline:hover { background: #fff; color: #1a1a2e; }

.btn-outline-dark {
    display: inline-block;
    background: transparent;
    color: #1a1a2e;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    border: 2px solid #1a1a2e;
    transition: all 0.3s;
    cursor: pointer;
}
.btn-outline-dark:hover { background: #1a1a2e; color: #fff; }

.btn-small {
    display: inline-block;
    color: #e67e22;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}
.btn-small:hover { text-decoration: underline; }

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.section-title p {
    color: #777;
    font-size: 16px;
}
.section-title .line {
    width: 60px;
    height: 3px;
    background: #e67e22;
    margin: 15px auto 0;
}
.section-title.text-left { text-align: left; }
.section-title.text-left .line { margin: 15px 0 0; }

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
    background: #1a1a2e;
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar a { color: #fff; margin-left: 20px; transition: color 0.3s; }
.top-bar a:hover { color: #e67e22; }
.top-bar i { margin-right: 5px; color: #e67e22; }

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    display: flex;
    align-items: center;
}
.logo img { height: 50px; width: auto; }
.logo-text {
    margin-left: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
}
.logo-text span { color: #e67e22; }

.nav { display: flex; align-items: center; }
.nav > ul { display: flex; gap: 0; }
.nav > ul > li { position: relative; }
.nav > ul > li > a {
    display: block;
    padding: 0 18px;
    height: 80px;
    line-height: 80px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    transition: all 0.3s;
}
.nav > ul > li:hover > a,
.nav > ul > li.active > a { color: #e67e22; }

/* Dropdown - Desktop hover */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 240px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: none;
    border-top: 3px solid #e67e22;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 100;
}
.nav > ul > li:hover > .dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.dropdown li a {
    display: block;
    padding: 12px 20px;
    font-size: 13px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}
.dropdown li a:hover {
    background: #f8f8f8;
    color: #e67e22;
    padding-left: 25px;
}
.dropdown li:last-child a { border-bottom: none; }
.has-submenu > a::after {
    content: '\25BC';
    font-size: 8px;
    margin-left: 5px;
}

/* Sub-dropdown */
.dropdown li.has-submenu { position: relative; }
.dropdown li.has-submenu > a::after {
    content: '\25B6';
    float: right;
    font-size: 8px;
}
.dropdown .dropdown {
    top: 0;
    left: 100%;
    border-top: none;
    border-left: 3px solid #e67e22;
}
.dropdown li.has-submenu:hover > .dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #1a1a2e;
}

/* ============================================
   Page Banner
   ============================================ */
.page-banner {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.page-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}
.page-banner .banner-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    text-align: center;
}
.page-banner .banner-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.page-banner .banner-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
}

/* Breadcrumb */
.breadcrumb {
    background: #f9f9f9;
    padding: 15px 0;
    font-size: 13px;
    color: #777;
}
.breadcrumb .container {
    display: flex;
    gap: 8px;
    align-items: center;
}
.breadcrumb a { color: #555; transition: color 0.3s; }
.breadcrumb a:hover { color: #e67e22; }
.breadcrumb span { color: #e67e22; }

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #111;
    color: #aaa;
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-brand img { height: 45px; margin-bottom: 15px; }
.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s;
}
.footer-social a:hover { background: #e67e22; }
.footer h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    font-size: 14px;
    color: #aaa;
    transition: color 0.3s;
}
.footer-links a:hover { color: #e67e22; }
.footer-contact li {
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
}
.footer-contact li i {
    margin-right: 10px;
    color: #e67e22;
    margin-top: 3px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}
.footer-bottom a { color: #e67e22; }

/* ============================================
   Cards & Grids (shared)
   ============================================ */
.card-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.card-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .page-banner { height: 320px; }
    .page-banner .banner-content h1 { font-size: 36px; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    .nav.active { display: block; }
    .nav > ul { flex-direction: column; }
    .nav > ul > li > a {
        height: 50px;
        line-height: 50px;
        border-bottom: 1px solid #f0f0f0;
    }
    .dropdown {
        position: static;
        opacity: 1;
        transform: none;
        box-shadow: none;
        border-top: none;
        display: none;
        border-left: none;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.35s ease;
    }
    .dropdown.open {
        display: block;
        max-height: 600px;
    }
    .dropdown .dropdown { left: 0; border-left: none; }
    .has-submenu { position: relative; }
    .has-submenu > a { position: relative; padding-right: 40px; }
    .submenu-arrow {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 12px;
        color: #999;
        transition: transform 0.3s;
        z-index: 2;
    }
    .has-submenu.open > a .submenu-arrow,
    .has-submenu.open > .submenu-arrow {
        transform: translateY(-50%) rotate(180deg);
    }
    .dropdown li.has-submenu > a::after { display: none; }
    .card-grid-4,
    .card-grid-3,
    .card-grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .page-banner { height: 280px; }
    .page-banner .banner-content h1 { font-size: 28px; }
    .top-bar .container { flex-direction: column; gap: 5px; }
}
