/* Shei Tai Industrial - tampilan mengikuti sheitai.co.id (tema Divi) */
:root {
    --dark: #2e2e2e;
    --accent: #e09900;
    --link: #2ea3f2;
    --text: #666;
    --heading: #333;
    --header-h: 80px;
    --font-head: "Montserrat", Helvetica, Arial, sans-serif;
    --font-body: "Open Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    margin: 0;
    padding-top: var(--header-h);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7em;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
h1, h2, h3 { color: var(--heading); line-height: 1.2em; margin: 0 0 10px; font-weight: 500; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container { width: 80%; max-width: 1080px; margin: 0 auto; }
.container-wide { width: 89%; margin: 0 auto; }
.text-center { text-align: center; }
.img-full { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
    transition: height .4s ease-in-out, box-shadow .4s ease-in-out;
}

/* Seperti Divi: header mengecil saat halaman di-scroll */
@media (min-width: 981px) {
    .site-header.is-fixed { height: 54px; box-shadow: 0 0 7px rgba(0, 0, 0, .1); }
}

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { height: 54%; display: flex; transition: all .4s ease-in-out; }
.logo img { height: 100%; width: auto; }

.main-nav { display: flex; gap: 22px; }
.main-nav a {
    font-size: 14px;
    font-weight: 600;
    color: rgba(0, 0, 0, .6);
    transition: all .4s ease-in-out;
}
.main-nav a:hover { opacity: .7; }
.main-nav a.active { color: var(--link); }

.nav-toggle { display: none; }

@media (max-width: 980px) {
    .nav-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        background: none;
        border: 0;
        font: 600 14px var(--font-body);
        color: rgba(0, 0, 0, .6);
        cursor: pointer;
    }
    .nav-toggle-icon,
    .nav-toggle-icon::before,
    .nav-toggle-icon::after { display: block; width: 22px; height: 3px; background: var(--link); position: relative; }
    .nav-toggle-icon::before,
    .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
    .nav-toggle-icon::before { top: -7px; }
    .nav-toggle-icon::after { top: 7px; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 5%;
        background: #fff;
        border-top: 3px solid var(--link);
        box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 10px 5%; border-bottom: 1px solid rgba(0, 0, 0, .03); }
}

/* ---------- Slider ---------- */
.slider { position: relative; overflow: hidden; background: #000; }
.slider-fullscreen { height: calc(100vh - var(--header-h)); min-height: 420px; }

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.slide-content { width: 80%; max-width: 1080px; text-align: center; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.slide.is-active .slide-content { animation: fadeBottom .7s ease-in-out; }
.slide-title {
    font: 700 60px/1.1em var(--font-head);
    color: #fff;
    margin-bottom: 16px;
}
.slider-process .slide-title { font-size: 80px; }
.slide-title a { color: inherit; }
.slide-text { font: italic 400 20px/1.6em var(--font-body); color: #fff; }

.video-slot { margin-top: 20px; }
.btn-video {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .3em .7em;
    border: 4px solid #fff;
    border-radius: 20px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.7em;
    color: #fff;
    transition: all .2s;
}
.btn-video:hover { background: rgba(255, 255, 255, .2); border-color: transparent; }
.play-icon { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }

/* Video YouTube yang tampil di tempat tombol Play Video */
.video-player {
    position: relative;
    width: min(800px, 100%, calc((100vh - var(--header-h) - 300px) * 16 / 9));
    min-width: min(280px, 100%);
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
    animation: videoIn .5s cubic-bezier(.77, 0, .175, 1);
}
.video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--dark);
    font-size: 24px;
    line-height: 34px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
    z-index: 1;
}
.video-close:hover { background: var(--accent); color: #fff; }
@keyframes videoIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

.slider-arrow {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    background: none;
    border: 0;
    cursor: pointer;
    opacity: 0;
    transition: all .2s ease-in-out;
    z-index: 2;
}
.slider-arrow::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: solid #fff;
    border-width: 0 0 4px 4px;
}
.slider-arrow.prev { left: -22px; }
.slider-arrow.prev::before { transform: rotate(45deg); }
.slider-arrow.next { right: -22px; }
.slider-arrow.next::before { transform: rotate(-135deg); }
.slider:hover .slider-arrow { opacity: 1; }
.slider:hover .slider-arrow.prev { left: 22px; }
.slider:hover .slider-arrow.next { right: 22px; }

.slider-dots { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 10px; z-index: 2; }
.slider-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
}
.slider-dots button.is-active { background: #fff; }

/* ---------- Banner & bands ---------- */
.hero-banner {
    position: relative;
    height: calc(100vh - var(--header-h));
    min-height: 360px;
}

/* Parallax CSS (banner Product) — sama seperti Divi "CSS parallax" */
.parallax-css {
    background-size: cover;
    background-position: top center;
    background-attachment: fixed;
}

/* Parallax JS (About Us) — sama seperti Divi "true parallax": latar bergerak 0.3x kecepatan scroll */
.js-parallax { position: relative; overflow: hidden; }
.parallax-bg {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    will-change: transform;
}

.title-band { background: var(--dark); padding: 30px 0 25px; text-align: center; }
.title-band h1,
.page-title {
    font: 700 45px/1.2em var(--font-head);
    color: var(--accent);
    margin: 0;
    padding: 0 5%;
}
.title-band a { color: inherit; }
.page-title { color: var(--dark); text-align: center; }

.section { padding: 54px 0; }
.section-tight { padding: 27px 0; }
.section-flush { padding: 0; }
.section-top-flush { padding-top: 0; }
.section-heading { padding: 30px 0 25px; }

.accent-title {
    font: 700 30px/1.2em var(--font-head);
    color: var(--accent);
    text-align: center;
    margin-bottom: 20px;
}

.about-intro { text-align: center; font-size: 20px; font-weight: 300; line-height: 2em; }

.awards-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.awards-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Parallax ---------- */
.parallax { padding: 80px 0; }
.parallax > :not(.parallax-bg) { position: relative; }
.parallax-tall { padding: 156px 0 115px; }
.dark-text { color: #fff; }
.dark-text p { text-align: center; }

.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5.5%; }
.col { text-align: center; }

.card-title {
    font: 700 40px/1.2em var(--font-head);
    color: var(--dark);
    text-align: center;
    margin-bottom: 28px;
}
.card-title.accent { color: var(--accent); }

.btn-stack { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 24px; }
/* Tombol gaya Divi: saat hover, border hilang dan ikon panah muncul dari kiri */
.btn-ghost,
.btn-submit {
    position: relative;
    padding: .3em 1em;
    border: 2px solid;
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    transition: all .2s;
}
.btn-ghost::after,
.btn-submit::after {
    content: "\203A";
    position: absolute;
    margin-left: -1em;
    opacity: 0;
    font-size: 32px;
    line-height: 1em;
    transition: all .2s;
}
.btn-ghost:hover::after,
.btn-submit:hover::after { margin-left: .2em; opacity: 1; }

.btn-ghost {
    border-color: var(--accent);
    font: 500 15px/1.7em var(--font-body);
    color: var(--accent);
}
.btn-ghost::after { font-size: 24px; top: .25em; }
.btn-ghost:hover { padding: .3em 2em .3em .7em; color: #fff; border-color: transparent; border-radius: 5px; }

.values { padding: 26px 0 36px; }
.value-icon { margin: 0 auto 10px; width: 160px; }

/* ---------- Modal (popup Machine List / IATF) ---------- */
/* Efek "hugeinc" dari plugin Divi Overlays */
.modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    overflow-y: auto;
    padding: 80px 5% 60px;
    background: rgba(0, 0, 0, .9);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    perspective: 1200px;
    transition: opacity .5s, visibility 0s .5s;
}
.modal.is-open { opacity: 1; visibility: visible; transition: opacity .5s; }
.modal-body {
    max-width: 1080px;
    margin: 0 auto;
    opacity: .4;
    transform: translateY(-25%) rotateX(35deg);
    transition: transform .5s, opacity .5s;
}
.modal.is-open .modal-body { opacity: 1; transform: rotateX(0deg); }
.modal.is-closing .modal-body { transform: translateY(25%) rotateX(-35deg); }
.modal-body h2 { font: 700 30px/1.2em var(--font-head); color: #fff; margin: 30px 0 20px; }
.modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    background: none;
    border: 0;
    font-size: 60px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
}
.modal-close:focus:not(:focus-visible) { outline: none; }
.certificate { margin: 0 auto; max-height: calc(100vh - 140px); width: auto; }

.table-scroll { overflow-x: auto; }
.machine-table { width: 100%; border-collapse: collapse; background: #fff; color: var(--text); }
.machine-table th,
.machine-table td { padding: 8px; text-align: left; border-bottom: 1px solid #ddd; }
.machine-table th { color: var(--heading); font-weight: 700; }
.machine-table tr:hover td { background: #f5f5f5; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; width: 89%; margin: 0 auto; }
.process-card { margin: 0; }
.process-card img { width: 100%; }
.process-card figcaption { margin-top: 16px; font: 700 26px/1.2em var(--font-body); color: var(--heading); text-align: center; }
.banner-image { margin: 60px 0; }
.banner-image img { width: 100%; }

/* ---------- Product ---------- */
.legend { margin: 20px 0; }
.legend img { width: 100%; }

.tabs { border: 1px solid #d9d9d9; }
.tabs-controls { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; background: #f4f4f4; }
.tabs-controls li { border-right: 1px solid #d9d9d9; font-weight: 600; }
.tabs-controls li.is-active { background: #fff; }
.tabs-controls a { display: block; padding: 4px 30px; color: var(--text); line-height: 1.7em; }
.tabs-controls li.is-active a { color: var(--heading); }
.tabs-content { padding: 24px 30px; background: #fff; }

/* Galeri gaya Envira: tab berganti dengan fade, gambar muncul perlahan saat dimuat */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; transition: opacity .4s ease; }
.gallery.is-switching { opacity: 0; }
.gallery-item { position: relative; display: block; overflow: hidden; background: #fff; }
.gallery-item[hidden] { display: none; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity 1s ease; }
.js .gallery-item img:not(.is-loaded) { opacity: 0; }
.gallery-item:hover img { opacity: .8; }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 70px;
    background: rgba(0, 0, 0, .9);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility 0s .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; transition: opacity .3s; }
.lightbox img.is-loading { opacity: 0; }
.lightbox-caption { margin-top: 12px; color: #fff; text-align: center; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 48px; line-height: 1; padding: 10px; }
.lightbox .lb-close { top: 10px; right: 20px; }
.lightbox .lb-prev { left: 10px; top: 50%; translate: 0 -50%; }
.lightbox .lb-next { right: 10px; top: 50%; translate: 0 -50%; }

/* ---------- Contact ---------- */
.contact-form form { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3%; margin-bottom: 3%; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    border: 0;
    border-radius: 0;
    background: #eee;
    font: 14px var(--font-body);
    color: #999;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 1px solid #ccc; color: #555; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.form-bottom { display: flex; justify-content: flex-end; align-items: center; gap: 20px; margin-top: 3%; }
.captcha { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.contact-form .captcha input { width: 50px; padding: 10px 8px; text-align: center; }
.btn-submit {
    border-color: var(--link);
    font: 500 20px/1.7em var(--font-body);
    color: var(--link);
}
.btn-submit:hover { padding: .3em 2em .3em 1em; background: rgba(0, 0, 0, .05); border-color: transparent; }
.hp-field { position: absolute; left: -9999px; }

.form-message { margin-bottom: 20px; padding: 12px 16px; }
.form-message.success { background: #e3f6e8; color: #1c6b34; font-size: 16px; }
.form-message.error { background: #fbe6e6; color: #a12727; }
.form-message ul { margin: 6px 0 0; padding-left: 18px; }

.map iframe { display: block; width: 100%; height: 440px; border: 0; }

/* ---------- Footer ---------- */
.footer-main { background: var(--dark); color: #fff; padding: 54px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5.5%; align-items: start; }
.footer-logo img { width: 147px; }
.footer-main strong { font-weight: 700; }
.footer-bottom { background: rgba(0, 0, 0, .32); color: #666; padding: 15px 0 5px; font-size: 14px; }
.footer-bottom .container { padding-bottom: 10px; }

/* ---------- Animasi (sama dengan Divi) ---------- */
@keyframes fadeLeft { 0% { opacity: 0; transform: translateX(-10%); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes fadeBottom { 0% { opacity: 0; transform: translateY(10%); } 100% { opacity: 1; transform: translateY(0); } }

/* Elemen "anim-left" muncul dari kiri saat masuk layar (Divi: et_pb_animation_left) */
.js .anim-left { opacity: 0; }
.js .anim-left.is-animated { opacity: 1; animation: fadeLeft 1s 1 cubic-bezier(.77, 0, .175, 1); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .js .anim-left { opacity: 1; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .slide-title, .slider-process .slide-title { font-size: 40px; }
    .slide-text { font-size: 17px; }
    .title-band h1, .page-title { font-size: 34px; }
    .card-title { font-size: 30px; }
    .cols-3, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .process-grid { grid-template-columns: 1fr; gap: 30px; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .parallax-css { background-attachment: scroll; }
    .slider-arrow { opacity: 1; }
    .slider-arrow.prev { left: 22px; }
    .slider-arrow.next { right: 22px; }
}

@media (max-width: 767px) {
    .container, .container-wide, .process-grid { width: 90%; }
    .slide-title, .slider-process .slide-title { font-size: 28px; }
    .slide-text { font-size: 15px; }
    .slider-arrow { display: none; }
    .btn-video { font-size: 16px; }
    .video-player { width: 100%; }
    .video-close { top: -40px; right: 0; }
    .title-band h1, .page-title { font-size: 26px; }
    .about-intro { font-size: 16px; }
    .awards-grid { grid-template-columns: repeat(2, 1fr); }
    .tabs-controls { flex-direction: column; }
    .tabs-controls li { border-right: 0; border-bottom: 1px solid #d9d9d9; }
    .tabs-content { padding: 15px; }
    .gallery { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 12px; }
    .parallax-tall { padding: 80px 0; }
    .lightbox { padding: 50px 15px; }
}
