/* ============================================
   PT SEIFERTECH EQUIPMENT NUSANTARA
   Main Stylesheet
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #003366;
    --primary-dark: #002244;
    --secondary-color: #C4A747;
    --accent-color: #0099CC;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    background-image: url('../images/pattern-cuban-tile.svg');
    background-repeat: repeat;
    background-size: 200px 200px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 15px; }
h3 { font-size: 1.5rem; margin-bottom: 10px; }
h4 { font-size: 1.2rem; margin-bottom: 8px; }

p { margin-bottom: 15px; }

.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: background var(--transition-normal), color var(--transition-normal), border var(--transition-normal);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #b0913c;
    border-color: #b0913c;
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    width: 180px;
    height: auto;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    position: relative;
    transition: background var(--transition-normal);
}

.hamburger::before,
.hamburger::after {
    content: '';
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    position: absolute;
    left: 0;
    transition: transform var(--transition-normal);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-list {
    display: flex;
    gap: 20px;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    display: block;
    padding: 10px 0;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    text-transform: uppercase;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--secondary-color);
}

.nav-list a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    margin-top: 4px;
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-secondary);
    min-width: 220px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    z-index: 999;
    padding: 8px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    padding: 8px 20px;
    white-space: nowrap;
    color: var(--text-primary);
}

.dropdown-menu li a:hover {
    background: var(--bg-primary);
    color: var(--secondary-color);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-toggle {
    background: none;
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-toggle:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
}

.lang-toggle.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.lang-toggle svg {
    width: 16px;
    height: 16px;
}

.lang-toggle.active svg path {
    fill: #fff;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    min-width: 120px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-btn {
    display: block;
    width: 100%;
    padding: 8px 12px;
    text-align: left;
    background: none;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    background: var(--bg-primary);
}

.lang-btn.active {
    background: var(--primary-color);
    color: #fff;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-overlay .container {
    color: #fff;
    text-align: center;
}

.slide-overlay h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 10px;
}

.slide-overlay p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

/* Slider controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.7);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background var(--transition-normal);
}

.slider-btn:hover {
    background: #fff;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background var(--transition-normal);
}

.dot.active {
    background: var(--secondary-color);
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 15px auto 0;
}

.bg-light {
    background-color: rgba(255,255,255,0.7);
}

/* Card Grids */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.card-grid > * {
    flex: 1;
    min-width: 280px;
    margin: 15px;
}

.card-grid {
    display: grid;
    gap: 30px;
}

.two-col {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.two-col > * {
    min-width: 300px;
}

.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.three-col > * {
    min-width: 250px;
}

.four-col {
    grid-template-columns: repeat(4, 1fr);
}

.four-col > * {
    min-width: 200px;
}

.card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 10px;
}

.project-detail {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-detail::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(196, 167, 71, 0.1), transparent);
    transition: left 0.5s ease;
}

.project-detail:hover::after {
    left: 100%;
}

.card-read-more {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.card-read-more:hover {
    background: var(--primary-dark);
    transform: translateX(5px);
}

/* Project & Product cards with images */
.project-card img,
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Product detailed items (products page) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-color);
    color: #fff;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.product-card-body {
    padding: 20px;
}

.product-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.product-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.product-card-feature {
    background: var(--bg-primary);
    padding: 4px 10px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

.product-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background var(--transition-normal);
}

.product-card-btn:hover {
    background: var(--primary-dark);
}

.product-card-btn svg {
    width: 14px;
    height: 14px;
}

.product-detail-header {
    background: var(--bg-primary);
    padding: 60px 0 40px;
}

.product-detail-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.product-detail-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.product-detail-images {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 15px;
}

.product-detail-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-detail-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.product-detail-thumbnail.active {
    border-color: var(--secondary-color);
}

.product-detail-main-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.product-detail-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.product-detail-info .product-detail-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 30px;
}

.product-detail-info p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.product-detail-specs {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 30px;
}

.product-detail-specs h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.product-detail-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.product-detail-spec-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.product-detail-spec-item:last-child {
    border-bottom: none;
}

.product-detail-spec-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.product-detail-spec-value {
    color: var(--text-primary);
    font-weight: 600;
}

.product-detail-features {
    margin-bottom: 30px;
}

.product-detail-features h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.product-detail-features ul {
    list-style: none;
    padding: 0;
}

.product-detail-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.product-detail-features li::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.product-detail-cta {
    display: flex;
    gap: 15px;
}

.product-detail-cta .btn {
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
}

.product-detail-section {
    margin-bottom: 60px;
}

.product-detail-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.product-detail-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.product-detail-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.product-detail-table th,
.product-detail-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.product-detail-table th {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.product-detail-table tr:hover {
    background: var(--bg-primary);
}

/* About Snapshot */
.about-snapshot .two-col {
    align-items: center;
}

.about-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Page Banner (inner pages) */
.page-banner {
    background: var(--primary-color);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.page-banner h1 {
    color: #fff;
    margin-bottom: 10px;
}

.breadcrumb {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--secondary-color);
}

/* Contact Page */
.contact-info .info-item {
    margin-bottom: 25px;
}

.contact-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.contact-form-wrapper {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.form-note {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ===== FOOTER ===== */
.site-footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-col p,
.footer-col a {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    font-size: 1.5rem;
    color: #ccc;
    transition: color var(--transition-normal);
}

.social-icon:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    h1 { font-size: 2rem; }
    .slide-overlay h1 { font-size: 2.2rem; }
    .four-col {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-item {
        flex-direction: column;
        gap: 20px;
    }
    .product-image {
        flex: 0 0 auto;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 70px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-list {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none;
        z-index: 998;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list a {
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: #fafafa;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-toggle::after {
        content: ' ▾';
    }

    .main-nav {
        order: 3;
    }

    .lang-switcher {
        order: 2;
        margin-left: auto;
    }

    .lang-toggle {
        padding: 5px 8px;
        font-size: 0.75rem;
    }

    .lang-toggle svg {
        width: 14px;
        height: 14px;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .three-col {
        grid-template-columns: 1fr;
    }

    .four-col {
        grid-template-columns: 1fr;
    }

    .slide-overlay h1 {
        font-size: 1.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 25px;
    }
}

/* Hamburger animation when active */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}