/*
Theme Name: BISI Theme
Theme URI: https://bisi.co.id
Author: BISI Developer
Author URI: https://bisi.co.id
Description: Custom WordPress Theme for PT BISI International Tbk - Company Profile & WooCommerce Store. Fully compatible with Elementor Pro and WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bisi-theme
Tags: custom-logo, custom-menu, featured-images, full-width-template, theme-options, e-commerce, elementor
WooCommerce: 8.0
*/

/* ============================================
   CSS VARIABLES / DESIGN TOKENS
   ============================================ */
:root {
    --primary: #E30613;
    --primary-hover: #C1040F;
    --text-dark: #2D2D2D;
    --text-gray: #666666;
    --bg-gray: #F8F9FA;
    --border-color: #E2E8F0;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary { color: var(--primary); }
.text-gray { color: var(--text-gray); }
.bg-light { background-color: var(--bg-gray); }
.bg-white { background-color: var(--white); }
.pt-0 { padding-top: 0 !important; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 30px; }
.mb-2 { margin-bottom: 10px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;
    border: none;
    font-family: 'Montserrat', sans-serif;
}
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    font-size: 14px;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--white);
}
.btn-sm {
    padding: 8px 20px;
    font-size: 13px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.nav-links {
    display: flex;
    gap: 30px;
    flex: 1;
}
.nav-links a,
.nav-links .menu-item a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}
.nav-links a:hover,
.nav-links .menu-item a:hover {
    color: var(--primary);
}
/* WordPress Menu Reset */
.nav-links ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}
.nav-links ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}
.nav-links ul li a:hover {
    color: var(--primary);
}
.logo {
    flex: 1;
    display: flex;
    justify-content: center;
}
.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.logo img.custom-logo {
    height: 30px;
    width: auto;
}
.logo .site-title {
    color: var(--primary);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 1px;
}
.nav-action {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

/* Mobile Menu */
.nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    z-index: 999;
}
.nav-links.open ul {
    flex-direction: column;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 700px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
}
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}
.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.hero-search-wrapper {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #EFEFEF;
    padding: 20px 40px;
    border-radius: 60px 0 0 0;
    display: flex;
    align-items: center;
    z-index: 10;
}
.hero-search-wrapper input {
    background: #333;
    border: none;
    padding: 12px 20px;
    border-radius: 20px 0 0 20px;
    color: white;
    outline: none;
    width: 250px;
    font-family: 'Montserrat', sans-serif;
}
.hero-search-wrapper input::placeholder {
    color: #999;
}
.hero-search-wrapper button {
    background: #333;
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
}

/* ============================================
   SECTION GLOBAL
   ============================================ */
section {
    padding: 80px 0;
}
.section-divider {
    border: none;
    border-top: 1px solid rgba(227, 6, 19, 0.3);
    margin: 40px auto;
    width: 100%;
}
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}
.section-header.justify-center {
    justify-content: center;
}
.section-header.justify-start {
    justify-content: flex-start;
}
.line {
    height: 3px;
    width: 40px;
    background-color: var(--text-dark);
}
.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* ============================================
   MENGENAL BISI
   ============================================ */
.mengenal-content {
    display: flex;
    align-items: center;
    gap: 50px;
}
.mengenal-text {
    flex: 1;
}
.mengenal-text p {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.8;
}
.mengenal-image {
    flex: 1.5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.mengenal-image img {
    width: 100%;
    display: block;
}
.tabs-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.pill-tabs {
    display: inline-flex;
    background: var(--white);
    border: 1px solid var(--primary);
    border-radius: 30px;
    padding: 5px;
}
.pill-tab {
    padding: 10px 30px;
    border: none;
    background: transparent;
    border-radius: 25px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
}
.pill-tab.active {
    background-color: var(--primary);
    color: var(--white);
}

/* ============================================
   PRODUK CARDS
   ============================================ */
.produk-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border: 1px solid var(--border-color);
}
.produk-card {
    width: calc(33.333% - 20px);
}
.brosur-card {
    width: calc(20% - 24px);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.produk-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card h3 {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
}
.brosur-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    padding: 20px;
    background-color: var(--white);
}

/* ============================================
   ARTIKEL
   ============================================ */
.artikel-layout {
    display: flex;
    gap: 40px;
}
.artikel-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.artikel-item {
    display: flex;
    gap: 20px;
    background: var(--white);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
}
.artikel-item img {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}
.artikel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.date {
    font-size: 12px;
    margin-bottom: 5px;
}
.artikel-info h3 {
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.4;
}
.artikel-featured {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    background: var(--white);
    position: relative;
    border: 1px solid var(--border-color);
}
.artikel-featured img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}
.featured-info {
    padding: 25px;
    background: var(--white);
}
.featured-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.artikel-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    position: relative;
}
.lihat-semua {
    position: absolute;
    right: 0;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}
.lihat-semua:hover {
    color: var(--primary);
}

/* ============================================
   DETAILS PAGE
   ============================================ */
.hero-details {
    position: relative;
    height: 450px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.hero-details::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.1);
}
.hero-details .hero-search-wrapper {
    z-index: 10;
}
.details-content {
    padding: 80px 0;
}
.details-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}
.visi-misi-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--bg-gray);
    border-top: 5px solid var(--primary);
    padding-top: 60px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}
.footer-left {
    flex: 1;
}
.footer-left h4 {
    font-size: 14px;
    margin-bottom: 5px;
}
.footer-left p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.8;
}
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.footer-right h4 {
    font-size: 16px;
    margin-bottom: 15px;
}
.social-icons {
    display: flex;
    gap: 15px;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s;
}
.social-icons a:hover {
    background-color: var(--text-dark);
}
.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-gray);
}

/* ============================================
   WOOCOMMERCE OVERRIDES
   ============================================ */
.woocommerce-page .site-content {
    padding: 40px 0;
}
.woocommerce ul.products li.product a img {
    border-radius: 15px;
}
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    border-radius: 30px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    border: none !important;
    transition: all 0.3s !important;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background-color: var(--primary-hover) !important;
}
.woocommerce .price {
    color: var(--primary) !important;
    font-weight: 700 !important;
}
.woocommerce ul.products li.product {
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 15px;
    transition: transform 0.3s;
}
.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.woocommerce-message,
.woocommerce-info {
    border-top-color: var(--primary) !important;
}
.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--primary) !important;
}

/* ============================================
   ELEMENTOR OVERRIDES
   ============================================ */
.elementor-page .site-content {
    padding: 0;
}
body.elementor-default .site-content,
body.elementor-template-canvas .site-content {
    padding: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .nav-links, .nav-action .btn {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .nav-links.open, .nav-links.open + .nav-action .btn {
        display: flex;
    }
    .mengenal-content {
        flex-direction: column;
    }
    .artikel-layout {
        flex-direction: column;
    }
    .produk-card, .brosur-card {
        width: calc(50% - 15px);
    }
    .hero-search-wrapper {
        border-radius: 40px 0 0 0;
        padding: 15px 25px;
    }
    .hero-search-wrapper input {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .produk-card, .brosur-card {
        width: calc(50% - 15px);
        max-width: 100%;
    }
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    .footer-right {
        align-items: flex-start;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero {
        height: 500px;
    }
    .artikel-bottom {
        flex-direction: column;
        gap: 20px;
    }
    .artikel-item {
        flex-direction: column;
    }
    .artikel-item img {
        width: 100%;
        height: 200px;
    }
    .lihat-semua {
        position: static;
    }
    .hero-search-wrapper {
        border-radius: 20px 0 0 0;
    }
    .hero-search-wrapper input {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero {
        height: 400px;
    }
    .section-header h2 {
        font-size: 1.5rem;
    }
}
