/* ==========================================================
   HPB Home page - visual polish (overrides only, loaded last)
   Brand: #da3438 (red) / #891c1f (dark red)
   ========================================================== */
:root {
    --hpb-red: #da3438;
    --hpb-red-dark: #891c1f;
    --hpb-red-soft: #fff1f1;
    --hpb-ink: #1f2430;
    --hpb-muted: #667085;
    --hpb-bg: #f6f7f9;
    --hpb-radius: 16px;
    --hpb-shadow: 0 6px 24px rgba(31, 36, 48, .08);
    --hpb-shadow-hover: 0 14px 36px rgba(218, 52, 56, .22);
}

html { scroll-behavior: smooth; }

/* ---------- Banner ---------- */
.section_banner video { object-fit: cover; }
.section_banner .text_video {
    text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
    line-height: 1.5;
}
.section_banner .text_video6 h1 { letter-spacing: 1px; }

/* ---------- Why us ---------- */
#why_us .introduce { margin-top: 70px; margin-bottom: 30px; }
#why_us .content-bussiess h5 {
    display: inline-block;
    color: var(--hpb-red);
    background: var(--hpb-red-soft);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 14px;
    letter-spacing: .08em;
}
#why_us .content-bussiess h2 {
    color: var(--hpb-ink);
    font-size: 34px;
    line-height: 1.25;
    margin: 16px 0;
}
#why_us .content-bussiess p { line-height: 1.75; font-size: 15px; }

.snip1547 {
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(218, 52, 56, .3);
    transition: box-shadow .25s; /* movement is handled by Motion (magnetic) */
}
.snip1547:hover { box-shadow: 0 12px 26px rgba(218, 52, 56, .4); }

/* Service cards: consistent look instead of alternating red/grey */
.row.introduce-item { margin: 0 -12px; }
.row.introduce-item > div { padding: 12px; }

.item1, .item2, .item3, .item4 {
    width: 100%;
    height: auto;
    min-height: 250px;
    margin: 0;
    padding: 30px 26px;
    background: #fff !important;
    color: var(--hpb-ink) !important;
    border: 1px solid #eceef2;
    border-radius: var(--hpb-radius);
    box-shadow: var(--hpb-shadow);
    position: relative;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s, background .3s, color .3s;
}
.item1::before, .item2::before, .item3::before, .item4::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--hpb-red), var(--hpb-red-dark));
}
.item1 i, .item2 i, .item3 i, .item4 i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px; height: 68px;
    padding: 0;
    margin-bottom: 14px;
    font-size: 30px;
    color: var(--hpb-red);
    background: var(--hpb-red-soft);
    border-radius: 50%;
    transition: all .3s;
}
.item1 h5, .item2 h5, .item3 h5, .item4 h5 {
    color: var(--hpb-ink) !important;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.35;
}
.item1 p, .item2 p, .item3 p, .item4 p {
    color: var(--hpb-muted) !important;
    font-size: 14px;
    line-height: 1.65;
}
.item1:hover, .item2:hover, .item3:hover, .item4:hover {
    transform: translateY(-6px);
    background: linear-gradient(135deg, var(--hpb-red), var(--hpb-red-dark)) !important;
    box-shadow: var(--hpb-shadow-hover);
    color: #fff !important;
}
.item1:hover h5, .item2:hover h5, .item3:hover h5, .item4:hover h5,
.item1:hover p, .item2:hover p, .item3:hover p, .item4:hover p,
.item2 p:hover, .item3 p:hover { color: #fff !important; }
.item1:hover i, .item2:hover i, .item3:hover i, .item4:hover i {
    color: var(--hpb-red);
    background: #fff;
}

/* ---------- Statistics ---------- */
.fun-factor-area {
    margin-top: 60px;
    background: linear-gradient(135deg, var(--hpb-red) 0%, var(--hpb-red-dark) 100%);
}
.fun-factor-area .statistic-item { margin: 56px 0; padding: 0 12px; }
.fun-fact {
    height: auto;
    padding: 26px 10px 22px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: var(--hpb-radius);
    backdrop-filter: blur(4px);
    transition: transform .3s, background .3s;
}
.fun-fact:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .18); }
.fun-fact i { margin-top: 0; color: #fff; font-size: 36px; opacity: .9; }
.fun-fact .timer { color: #fff; font-size: 46px; line-height: 1.2; margin: 8px 0; }
.fun-fact .medium { color: rgba(255, 255, 255, .9); letter-spacing: .06em; text-transform: uppercase; font-size: 14px; }

/* ---------- Technologies ---------- */
.techskill { padding: 70px 0 50px; }
.heading h2 { color: var(--hpb-ink); font-size: 34px; }
.logotech .icon-with-title {
    height: 140px;
    margin: 8px;
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(31, 36, 48, .05);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.logotech .icon-with-title:hover {
    transform: translateY(-5px);
    border-color: var(--hpb-red);
    box-shadow: var(--hpb-shadow-hover);
}
.hpb-icon img { margin-top: 26px; margin-bottom: 14px; object-fit: contain; }
.hpb-title p { margin: 0; color: var(--hpb-ink); font-weight: 600; font-size: 15px; }

/* ---------- Contact ---------- */
#contact_us { background: var(--hpb-bg) !important; padding: 70px 0 30px; }
#contact_us .site-heading h2 { font-weight: 700; color: var(--hpb-ink); }
#contact_us .site-heading h2 span { color: var(--hpb-red); }
#contact_us .contact-form,
#contact_us .address-item {
    background: #fff;
    border-radius: var(--hpb-radius);
    box-shadow: var(--hpb-shadow);
    padding: 30px;
}
#contact_us .address { padding-right: 0; }
#contact_us .form-control {
    height: auto;
    padding: 12px 14px;
    border: 1px solid #dfe3ea;
    border-radius: 10px;
    transition: border-color .2s, box-shadow .2s;
}
#contact_us .form-control:focus {
    border-color: var(--hpb-red);
    box-shadow: 0 0 0 3px rgba(218, 52, 56, .15);
    outline: 0;
}
#contact_us .btn10 { border-radius: 999px; padding: 12px 36px; font-weight: 600; }

/* ---------- Feedback + news ---------- */
#feedback_client .section_title h5,
.footerr .section_title h2 { color: var(--hpb-red); }
#feedback_client .section_title h2 { color: var(--hpb-ink); font-weight: 700; }
.feedback_item .content_feedback_item { border-radius: var(--hpb-radius); box-shadow: var(--hpb-shadow); }
.feedback_info .feedback_img img { object-fit: cover; }
.topnew .top_info ul li { transition: transform .2s; }
.topnew .top_info ul li:hover { transform: translateX(4px); }
.topnew .top_info ul li a:hover { color: var(--hpb-red); }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    #why_us .content-bussiess h2, .heading h2 { font-size: 26px; }
    .item1, .item2, .item3, .item4 { min-height: 0; }
    .fun-fact .timer { font-size: 36px; }
    #contact_us .contact-form, #contact_us .address-item { padding: 20px; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* ---------- Lenis smooth scroll (required rules) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Scroll progress bar ---------- */
#hpb-progress {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 3px;
    z-index: 100000;
    background: linear-gradient(90deg, var(--hpb-red), #ff8a8d);
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
    will-change: transform;
}

/* ---------- Scroll reveal: start hidden, Motion animates it in (only when JS enabled it) ---------- */
html.js-reveal .hpb-reveal { opacity: 0; }

/* ---------- Hero parallax (GSAP) ---------- */
.section_banner { overflow: hidden; }
.section_banner video { will-change: transform; transform-origin: 50% 50%; }

/* ---------- Showcase (cropped photos) ---------- */
.hpb-showcase { padding: 90px 0 0; background: #fff; overflow: hidden; }
.hpb-showcase__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.hpb-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 14px;
    color: var(--hpb-red);
    background: var(--hpb-red-soft);
    border-radius: 999px;
    font-size: 13px; font-weight: 700; letter-spacing: .14em;
}
.hpb-showcase__head h2 { font-size: 40px; font-weight: 700; line-height: 1.2; color: var(--hpb-ink); margin-bottom: 14px; }
.hpb-showcase__head h2 span { color: var(--hpb-red); }
.hpb-showcase__head p { color: var(--hpb-muted); font-size: 16px; line-height: 1.7; margin: 0; }

.hpb-showcase__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    align-items: start;
}
.hpb-showcase__col { display: flex; flex-direction: column; gap: 24px; }
.hpb-ph { position: relative; margin: 0; will-change: transform; }
.hpb-ph__mask {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: var(--hpb-shadow);
    background: #e9ecf1;
}
.hpb-ph--wide .hpb-ph__mask { aspect-ratio: 4 / 3; }
.hpb-ph--down { margin-top: 70px; }
.hpb-ph__mask img {
    position: absolute;
    left: 0; top: -10%;
    width: 100%; height: 120%;
    object-fit: cover;
    will-change: transform;
}
.hpb-ph figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 46px 20px 18px;
    color: #fff;
    border-radius: 0 0 22px 22px;
    background: linear-gradient(180deg, rgba(20, 24, 33, 0) 0%, rgba(20, 24, 33, .78) 100%);
    pointer-events: none;
}
.hpb-ph figcaption strong { display: block; font-size: 18px; font-weight: 700; }
.hpb-ph figcaption span { font-size: 13px; opacity: .85; }

/* ---------- Marquee ---------- */
.hpb-marquee { margin-top: 90px; padding: 22px 0; overflow: hidden; background: var(--hpb-ink); white-space: nowrap; }
.hpb-marquee__track { display: inline-flex; will-change: transform; }
.hpb-marquee__track span {
    padding: 0 34px;
    font-size: 40px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, .55);
}
.hpb-marquee__track span:nth-child(3n) { color: var(--hpb-red); -webkit-text-stroke: 0; }

@media (max-width: 991px) {
    .hpb-showcase__grid { grid-template-columns: 1fr 1fr; }
    .hpb-showcase__col { grid-column: 1 / -1; flex-direction: row; }
    .hpb-showcase__col .hpb-ph { flex: 1; }
}
@media (max-width: 575px) {
    .hpb-showcase { padding-top: 60px; }
    .hpb-showcase__head h2 { font-size: 28px; }
    .hpb-showcase__grid { grid-template-columns: 1fr; }
    .hpb-ph--down { margin-top: 0; }
    .hpb-showcase__col { flex-direction: column; }
    .hpb-marquee__track span { font-size: 26px; padding: 0 20px; }
}

/* ---------- News block (featured + list) ---------- */
.hpb-news__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid #eceef2; position: relative; }
.hpb-news__head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 2px; background: var(--hpb-red); }
.hpb-news__head h3 { margin: 0; font-size: 22px; font-weight: 700; }
.hpb-news__head h3 a { color: var(--hpb-ink); text-decoration: none; }
.hpb-news__all { color: var(--hpb-red); font-weight: 600; text-decoration: none; }
.hpb-news__all:hover { color: var(--hpb-red-dark); }
.hpb-news__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; }
.hpb-news time { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--hpb-red); margin-bottom: 6px; }
.hpb-news a { text-decoration: none; }
.hpb-news__featured { display: flex; flex-direction: column; background: #fff; border-radius: var(--hpb-radius); box-shadow: var(--hpb-shadow); overflow: hidden; color: var(--hpb-ink); transition: transform .25s, box-shadow .25s; }
.hpb-news__featured:hover { transform: translateY(-4px); box-shadow: var(--hpb-shadow-hover); }
.hpb-news__img { display: block; aspect-ratio: 16 / 10; background: #e9ecf1; overflow: hidden; }
.hpb-news__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hpb-news__featured:hover .hpb-news__img img { transform: scale(1.05); }
.hpb-news__body { display: block; padding: 18px 20px 22px; }
.hpb-news__body strong { display: block; font-size: 19px; line-height: 1.4; margin-bottom: 8px; }
.hpb-news__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--hpb-muted); font-size: 14px; line-height: 1.6; }
.hpb-news__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hpb-news__list li { margin: 0; }
.hpb-news__list a { display: flex; gap: 14px; align-items: center; padding: 10px; background: #fff; border-radius: 12px; box-shadow: var(--hpb-shadow); color: var(--hpb-ink); transition: transform .2s, box-shadow .2s; }
.hpb-news__list a:hover { transform: translateX(4px); box-shadow: var(--hpb-shadow-hover); }
.hpb-news__thumb { flex: 0 0 92px; height: 70px; border-radius: 8px; overflow: hidden; background: #e9ecf1; }
.hpb-news__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hpb-news__txt strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.4; }
.hpb-news__list a:hover strong, .hpb-news__featured:hover strong { color: var(--hpb-red); }
@media (max-width: 991px) { .hpb-news__grid { grid-template-columns: 1fr; } }

/* broken/missing news images: hide alt text, keep a neutral branded tile */
.hpb-news__img, .hpb-news__thumb { background: linear-gradient(135deg, #f3f4f7, #e4e7ed); }
.hpb-news__img img, .hpb-news__thumb img { color: transparent; font-size: 0; }

/* ---------- About: BrSE & Offshore Lab ---------- */
.hpb-label { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--hpb-red); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hpb-label::before { content: ""; width: 10px; height: 10px; background: var(--hpb-red); transform: rotate(45deg); flex: none; }
.hpb-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none !important; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.hpb-btn--solid { background: var(--hpb-red); color: #fff !important; box-shadow: 0 10px 24px rgba(218, 52, 56, .28); }
.hpb-btn--solid:hover { background: var(--hpb-red-dark); transform: translateY(-2px); }
.hpb-btn--ghost { border: 1.5px solid #cfd4de; color: var(--hpb-ink) !important; background: #fff; }
.hpb-btn--ghost:hover { border-color: var(--hpb-red); color: var(--hpb-red) !important; }

.hpb-brse { padding: 120px 0; background: var(--hpb-bg); }
.hpb-brse__top { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hpb-brse__intro h2 { font-size: 42px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; color: var(--hpb-ink); margin: 0 0 22px; }
.hpb-brse__intro h2 span { color: var(--hpb-red); }
.hpb-brse__intro > p { font-size: 17px; line-height: 1.85; color: var(--hpb-muted); margin: 0 0 32px; max-width: 620px; }
.hpb-brse__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hpb-brse__flow { position: relative; padding: 30px; background: #fff; border-radius: 28px; box-shadow: 0 24px 60px rgba(31, 36, 48, .1); }
.hpb-flow__node { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border: 1px solid #e8ebf0; border-radius: 18px; background: #fff; }
.hpb-flow__node > i { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--hpb-red-soft); color: var(--hpb-red); font-size: 22px; }
.hpb-flow__node strong { display: block; font-size: 17px; color: var(--hpb-ink); }
.hpb-flow__node span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--hpb-muted); }
.hpb-flow__node--hub { background: linear-gradient(135deg, var(--hpb-red), var(--hpb-red-dark)); border-color: transparent; box-shadow: 0 14px 30px rgba(218, 52, 56, .3); }
.hpb-flow__node--hub > i { background: rgba(255, 255, 255, .18); color: #fff; }
.hpb-flow__node--hub strong, .hpb-flow__node--hub span { color: #fff; }
.hpb-flow__node--hub span { opacity: .88; }
.hpb-flow__link { display: grid; place-items: center; height: 38px; color: var(--hpb-red); }
.hpb-flow__link i { transform: rotate(90deg); font-size: 18px; }

.hpb-brse__models { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 80px; }
.hpb-model { position: relative; padding: 40px 38px; background: #fff; border: 1px solid #e8ebf0; border-radius: 24px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.hpb-model:hover { transform: translateY(-5px); border-color: transparent; box-shadow: var(--hpb-shadow-hover); }
.hpb-model__tag { display: inline-block; padding: 5px 12px; margin-bottom: 18px; border-radius: 999px; background: var(--hpb-ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.hpb-model h3 { font-size: 26px; font-weight: 800; color: var(--hpb-ink); margin: 0 0 12px; }
.hpb-model > p { color: var(--hpb-muted); font-size: 15.5px; line-height: 1.75; margin: 0 0 24px; }
.hpb-model h5 { margin: 0 0 12px; padding-top: 22px; border-top: 1px dashed #dfe3ea; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hpb-ink); }
.hpb-model ul { list-style: none; margin: 0; padding: 0; }
.hpb-model li { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; font-size: 15px; line-height: 1.55; color: #2b3140; }
.hpb-model li i { margin-top: 3px; color: var(--hpb-red); }

.hpb-brse__feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 28px; }
.hpb-brse__feat { position: relative; padding: 32px 26px 30px; background: #fff; border-radius: 22px; box-shadow: var(--hpb-shadow); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.hpb-brse__feat:hover { transform: translateY(-6px); box-shadow: var(--hpb-shadow-hover); }
.hpb-brse__num { position: absolute; top: 14px; right: 20px; font-size: 54px; font-weight: 800; line-height: 1; color: #f0f1f5; }
.hpb-brse__feat > i { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 16px; background: var(--hpb-red-soft); color: var(--hpb-red); font-size: 22px; position: relative; }
.hpb-brse__feat h4 { position: relative; font-size: 18px; font-weight: 700; color: var(--hpb-ink); margin: 0 0 8px; }
.hpb-brse__feat p { position: relative; margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--hpb-muted); }

@media (max-width: 991px) {
    .hpb-brse { padding: 80px 0; }
    .hpb-brse__top { grid-template-columns: 1fr; gap: 40px; }
    .hpb-brse__intro h2 { font-size: 32px; }
    .hpb-brse__models { grid-template-columns: 1fr; margin-top: 56px; }
    .hpb-brse__feats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
    .hpb-brse__intro h2 { font-size: 27px; }
    .hpb-brse__feats { grid-template-columns: 1fr; }
    .hpb-model { padding: 30px 24px; }
}

/* ---------- News section heading (match the new label + statement style) ---------- */
.footerr { padding-top: 110px; background: #fff; }
.footerr .section_title h2 { font-family: inherit; font-size: 38px; font-weight: 800; letter-spacing: -.01em; color: var(--hpb-ink); text-transform: none; }
.footerr .section_title h2::before, .footerr .section_title h2::after { display: none !important; }
.hpb-news__head { border-bottom: 0; justify-content: flex-end; padding-bottom: 0; }
.hpb-news__head::after { display: none; }

/* ---------- One heading font across the home page (several legacy rules set Arial/Poppins/Montserrat) ---------- */
body h1, body h2, body h3, body h4, body h5, body h6 { font-family: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif; }
.footerr .section_title .hpb-label { display: flex; justify-content: center; }
.footerr .section_title h2 { font-family: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif !important; }
#technology .heading h2, #employee h2 { letter-spacing: -.01em; }

/* ---------- Hero: drop the legacy rotating caption boxes (replaced by the hero headline) ---------- */
.section_banner .text_video { display: none !important; }

/* ---------- Stats ---------- */
.fun-fact .timer { font-family: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif; font-weight: 800; letter-spacing: -.01em; }

/* ---------- Contact form button (grey 'disabled' state until reCAPTCHA is ticked) ---------- */
#contact_us .btn10 { background: var(--hpb-red); border: 0; color: #fff; box-shadow: 0 10px 24px rgba(218, 52, 56, .25); transition: opacity .2s, transform .2s; }
#contact_us .btn10:hover { transform: translateY(-2px); }
#contact_us .btn10.btn-disable { background: var(--hpb-red) !important; opacity: .4; cursor: not-allowed; box-shadow: none; }
#contact_us .btn10.btn-disable:hover { transform: none; }
#contact_us .btn10, #contact_us .btn10:focus { border: 0 !important; outline: 0; }
