@charset "UTF-8";
/* ==========================================================================
   Home page – HeveaBoard (/en/)
   Page-only styles. Navbar, footer and base come from global.css
   (loaded by [hb_header]). Sliders are driven by home.js (no jQuery/Swiper).
   ========================================================================== */

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ── Hero slider (fixed behind the page, content scrolls over it) ───────
   Same look as the standard banner: photo + dark gradient + caption
   bottom-left (.hero-caption / .hero-eyebrow / .hero-title from global.css).
   The new slide fades in on top of the old one (1.8 s), like the original. */
.home-hero { position: relative; height: 100vh; overflow: hidden; background: #111; }
.hero-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    visibility: hidden;
}
.hero-slide.is-prev   { z-index: 1; opacity: 1; visibility: visible; }
.hero-slide.is-active { z-index: 2; opacity: 1; visibility: visible; transition: opacity 1.8s ease; }
.hero-slide.is-entering { opacity: 0; }

.hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, rgba(0,0,0,.70) 0%, rgba(0,0,0,.30) 45%, rgba(0,0,0,0) 75%);
}
.home-hero .hero-caption { bottom: 20vh; animation: none; opacity: 0; transform: translateY(20px); }   /* room for "Scroll down" */
.hero-slide.is-active .hero-caption { animation: heroIn .9s .6s ease-out both; }

/* Slide 2 – company introduction */
.hero-about { max-width: 760px; }
.hero-lead {
    position: relative;
    margin: 0 0 16px;
    padding-bottom: 18px;
    font-size: clamp(20px, 2.2vw, 30px);
    line-height: 1.35;
    color: #fff;
}
.hero-lead::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 3px;
    background: #fff;
}
.hero-text { margin: 0; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.75; color: rgba(255,255,255,.88); }

.hero-down {
    position: absolute;
    left: 50%;
    bottom: 4.427vw;
    z-index: 5;
    padding-bottom: 1.125em;
    font-size: 1.5em;
    color: #fff;
    transform: translateX(-50%);
}
.hero-down:hover { color: #fff; opacity: .8; }
.hero-down::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: .875em;
    height: .583em;
    background: url('/wp/hbb/public/images/index/img1.png') center / cover no-repeat;
    transform: translateX(-50%);
}


/* ── Page body scrolls over the fixed hero ─────────────────────────────── */
.mainbody {
    position: relative;
    z-index: 10;
    margin-top: 100vh;
    overflow: hidden;
    background-color: #fff;
}

/* Section titles (legacy look) */
.y_index_1_mid { margin: 0 3.125em; }
.mainbody .y_index_1_1 { font-weight: 400; line-height: 1.3; }
.y_index_1_2 { margin: .3em 0 5vw; font-size: 1.25em; line-height: 1.6; text-align: center; }

/* ── Generic slider (.hs) ──────────────────────────────────────────────── */
.hs { position: relative; }
.hs-viewport { overflow: hidden; touch-action: pan-y; }
.hs-track { align-items: flex-start; }
.hs-track {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: transform .8s ease;
    will-change: transform;
}
.hs-slide { flex: 0 0 auto; min-width: 0; }
.hs.is-dragging .hs-track { transition: none; }

.hs-prev,
.hs-next {
    position: absolute;
    top: 11.875vw;
    z-index: 10;
    width: 50px;
    height: 50px;
    padding: 0;
    background: #fff;
    border: 1px solid #323232;
    cursor: pointer;
    transition: background-color .3s, opacity .3s;
}
.hs-prev { left: 0; }
.hs-next { right: 0; }
.hs-prev::before,
.hs-next::before {                        /* chevron arrow */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-top: 2px solid #323232;
    border-right: 2px solid #323232;
    transition: border-color .3s;
}
.hs-prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.hs-next::before { transform: translate(-70%, -50%) rotate(45deg); }
.hs-prev:hover,
.hs-next:hover { background-color: #323232; }
.hs-prev:hover::before,
.hs-next:hover::before { border-color: #fff; }
.hs-prev[aria-disabled="true"],
.hs-next[aria-disabled="true"] { opacity: .35; cursor: default; }
.hs-prev[aria-disabled="true"]:hover,
.hs-next[aria-disabled="true"]:hover { background-color: #fff; }
.hs-prev[aria-disabled="true"]:hover::before,
.hs-next[aria-disabled="true"]:hover::before { border-color: #323232; }

/* ── Finishing design ──────────────────────────────────────────────────── */
.y_index_1 { padding-bottom: 6vw; }
.fd-slider { padding: 0 6.25em; }
.fd-slider a { display: block; color: #000; }
.fd-img { display: block; overflow: hidden; }
.fd-img img { display: block; width: 100%; transition: transform .5s; }
.fd-slider a:hover .fd-img img { transform: scale(1.05); }
.fd-label {
    display: inline-block;
    min-width: 150px;
    margin-top: 1em;
    padding: 5px 1em 5px 0;
    font-size: 1.125em;
    color: #000;
    background: url('/wp/hbb/public/images/footer/img5.png') right center no-repeat;
    border-bottom: 1px solid #000;
}

/* ── Video ─────────────────────────────────────────────────────────────── */
.y_index_2 { position: relative; height: 100vh; overflow: hidden; color: #fff; text-align: center; }
.y_index_2 video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
}
.y_index_2_mask {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .2);
}
.y_index_2_mask_2 { font-size: 3em; line-height: 1.3; color: #fff; }

/* ── Certification ─────────────────────────────────────────────────────── */
/* Same centred text as before – only narrower lines and clearer gaps
   between the sentences so it is easier to read. */
.ywy_about_5_1 {
    max-width: 900px;
    margin: 0 auto 2.865vw;
    text-align: center;
}
.ywy_about_5_1 p { font-size: 16px; line-height: 1.85; color: #444; }
.ywy_about_5_1 p + p { margin-top: .9em; }
.ywy_about_5_2 { margin-bottom: 2.865vw; text-align: center; }
.ywy_about_5_2 img { display: block; margin: 0 auto; }
.ywy_about_5_2 img + img { margin-top: 3em; }

.cert { margin: 0; }
.cert-frame { position: relative; display: block; }
.cert-bg { display: block; width: 100%; }
.cert-img { position: absolute; top: 8%; left: 13%; width: 73.125%; }
.cert figcaption { padding: 0 1em; font-size: 16px; text-align: center; word-break: break-word; }

.hs-progress { position: relative; height: 4px; margin: 2em 0 6.51vw; background: #e5e5e5; }
.hs-progress span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .8s ease;
}

/* ── Clients ───────────────────────────────────────────────────────────── */
.y_index_5 { position: relative; z-index: 10; overflow: hidden; padding-bottom: 4vw; background-color: #fff; }
.y_index_4_mid { margin: 0 8.33333333%; }
.logo-slider { padding: 20px; }
.logo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px 24px;                       /* row gap, column gap */
    align-content: start;
    margin: 0;
    padding: 0;
    list-style: none;
}
.logo-grid li { display: flex; align-items: center; justify-content: center; height: 100px; padding: 8px; }
.logo-grid img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ── Fade-up on scroll ─────────────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 1s ease, transform 1s ease; }
.fade-up.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .fade-up, .home-hero .hero-caption { opacity: 1; transform: none; animation: none !important; transition: none; }
    .hs-track, .hero-slide { transition: none; }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1680px) {
    .y_index_2_mask_2 { font-size: 2.5em; }
    .hero-down { font-size: 1.25em; }
}

@media (max-width: 1080px) {
    .y_index_1_mid,
    .y_index_4_mid { margin: 0 2.60416667%; }
    .y_index_1_2 { font-size: 1em; }
    .fd-slider { padding: 0 4em; }
    .hs-prev, .hs-next { width: 40px; height: 40px; }
    .y_index_2_mask_2 { font-size: 1.5em; }
}

@media (max-width: 810px) {
    .hero-down { font-size: 1em; }
    .fd-label { font-size: 1em; }
}

@media (max-width: 768px) {
    .indexbanner { position: relative; height: auto; }
    .home-hero { height: 500px; }
    .hero-down { display: none; }
    .home-hero .hero-caption { bottom: 32px; }
    .hero-lead { margin-bottom: 10px; padding-bottom: 12px; }
    .hero-lead::after { width: 48px; }
    .hero-text { line-height: 1.6; }
    .mainbody { margin-top: 0; }
    .cert figcaption { font-size: 13px; }
    .ywy_about_5_1 p { font-size: 15px; line-height: 1.75; }
}

@media (max-width: 640px) {
    .fd-slider { padding: 0; }
    .hs-prev, .hs-next { top: 30%; width: 36px; height: 36px; background-color: rgba(50, 50, 50, .75); border-color: transparent; }
    .hs-prev::before, .hs-next::before { width: 10px; height: 10px; border-color: #fff; }
    .fd-label { min-width: 100%; }
    .y_index_2 { height: 50vh; }
    .logo-slider { padding: 10px 0; }
    .logo-grid { grid-template-columns: repeat(3, 1fr); gap: 20px 14px; }
    .logo-grid li { height: 90px; padding: 6px; }
}

@media (max-width: 480px) {
    .y_index_2_mask_2 { font-size: 1.25em; }
    .hero-text { font-size: 13px; }
}