/* ===== Baohui Power Bit — design system =====
   teal   #1B8D84
   navy   #011627
   gray   #808285
   font   Montserrat
*/
:root {
    --teal: #1B8D84;
    --teal-dark: #157169;
    --navy: #011627;
    --gray: #808285;
    --light: #f4f6f8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: "Montserrat", sans-serif;
    color: var(--gray);
    line-height: 1.857;
    font-size: 15px;
    background: #fff;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- shared type ---------- */
.label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(1, 22, 39, .35);
    margin-bottom: 14px;
}
.label-light { color: rgba(255, 255, 255, .55); }

.section { padding: 90px 0; }

/* ---------- buttons ---------- */
.btn {
    display: inline-block;
    padding: 15px 34px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: background .2s, transform .2s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }

/* ---------- header (values measured from the old Elementor header) ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(0, 0, 0, .82);
}
.header-inner {
    display: flex;
    align-items: center;
    min-height: 71px;
    padding: 10px 15px;
}
.logo { flex: 0 0 25%; display: flex; justify-content: center; }
.logo img { width: 230px; height: auto; }
.main-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.nav-menu { list-style: none; display: flex; width: 100%; max-width: 700px; justify-content: space-between; }
.nav-menu > li { position: relative; display: flex; align-items: center; flex: 1 1 auto; justify-content: center; }
.nav-menu > li + li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 16px;
    border-left: 2px solid #a5a5a5;
    transform: translateY(-50%);
}
.nav-menu > li > a {
    display: flex;
    align-items: center;
    padding: 13px 1px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
    transition: color .2s;
}
.nav-menu > li > a:hover,
.nav-menu > li:hover > a,
.nav-menu > li:focus-within > a { color: #25c2b5; }
.nav-menu > li.has-sub > a::after {
    content: "";
    margin-left: 10px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
}
.sub-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 156px;
    padding: 0;
    background: #49a6a3;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s, visibility 0s linear .15s;
    z-index: 5;
}
.nav-menu > li:hover > .sub-menu,
.nav-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transition: opacity .15s; }
.sub-menu a {
    display: block;
    padding: 13px 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    white-space: nowrap;
}
.sub-menu a:hover { background: #ededed; color: var(--teal); }
.header-buttons { flex: 0 0 auto; display: flex; gap: 6px; margin-left: 10px; }
.hbtn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 13px;
    cursor: pointer;
    white-space: nowrap;
}
.hbtn-inquiry { background: #33bdb7; }
.hbtn-contact { background: #a0b9da; }
.hbtn:hover { filter: brightness(1.08); }
.hbtn-icon { width: 13px; height: 13px; }
.menu-toggle {
    display: none;
    width: 32px; height: 32px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 3px;
    background: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
    display: block;
    width: 16px; height: 2px;
    background: #fff;
    position: relative;
}
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -5px; }
.menu-bars::after { top: 5px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { top: 0; transform: rotate(-45deg); }

/* tablet & phone: the old site collapsed the menu into a full-width teal dropdown */
@media (max-width: 1024px) {
    /* tablet (768–1024): one row of four equal columns, as on the old site */
    .header-inner {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        align-items: center;
        min-height: 0;
        padding: 20px 15px;
    }
    .logo { justify-content: flex-start; padding-left: 8px; }
    .logo img { width: 230px; max-width: none; }
    .menu-toggle { display: inline-flex; justify-self: end; margin-right: 46px; border-color: #ccc; }
    .menu-bars, .menu-bars::before, .menu-bars::after { background: #ccc; }
    .menu-toggle[aria-expanded="true"] { border-color: var(--teal); }
    .menu-toggle[aria-expanded="true"] .menu-bars::before,
    .menu-toggle[aria-expanded="true"] .menu-bars::after { background: var(--teal); }
    .header-buttons { display: contents; }
    .hbtn-inquiry { justify-self: center; margin-left: 40px; }
    .hbtn-contact { justify-self: start; margin-left: 34px; }
    .main-nav {
        grid-column: 1 / -1;
        margin: 20px -15px -20px;
        display: none;
        background: #49a6a3;
    }
    .main-nav.open { display: block; }
    .nav-menu { display: block; max-width: none; }
    .nav-menu > li { display: block; border-bottom: 1px dotted rgba(255, 255, 255, .6); }
    .nav-menu > li:last-child { border-bottom: none; }
    .nav-menu > li + li::before { display: none; }
    .nav-menu > li > a { justify-content: center; padding: 14px 0; font-size: 16px; font-weight: 700; }
    .nav-menu > li > a:hover { color: #fff; }
    .nav-menu > li > a:hover,
    .nav-menu > li:hover > a,
    .nav-menu > li:focus-within > a { color: #fff; }
    .nav-menu > li.has-sub > a::after { border-top-color: #fff; transition: transform .2s; }
    .nav-menu > li.sub-open > a::after { transform: rotate(180deg); }
    .sub-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        background: rgba(0, 0, 0, .08);
    }
    .nav-menu > li.sub-open > .sub-menu { display: block; }
    .sub-menu a { text-align: center; font-size: 14px; }
}
/* phone (≤767): logo on its own row at about half width, then toggle + both buttons spread out */
@media (max-width: 767px) {
    .header-inner { display: flex; flex-wrap: wrap; justify-content: space-around; row-gap: 10px; padding: 20px 10px; }
    .logo { flex: 0 0 100%; justify-content: center; padding: 0; }
    .logo img { width: 49%; max-width: 100%; }
    .menu-toggle { margin-right: 0; }
    .hbtn-inquiry, .hbtn-contact { margin-left: 0; }
    .hbtn-contact { font-size: 12px; line-height: 15px; }
    .main-nav { flex: 0 0 calc(100% + 20px); margin: 10px -10px -20px; }
}

/* ---------- form errors & flash messages ---------- */
.form-error { color: #ffb4b4; font-size: 13px; margin-bottom: 12px; }
.field-error { display: block; color: #ffb4b4; font-size: 12px; margin: -8px 0 10px; }

.flash-wrap { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 60; width: 90%; max-width: 560px; }
.flash {
    background: var(--teal);
    color: #fff;
    padding: 14px 20px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(1, 22, 39, .25);
}

/* ---------- footer (measured from the old site) ---------- */
.site-footer { background: #0a2941; padding: 100px 0 40px; }
.site-footer .container { max-width: 1140px; padding: 0; }
.footer-grid { display: grid; grid-template-columns: 30% 24% 24% 22%; gap: 0; }
.footer-logo img { width: 230px; height: auto; margin: -20px 0 40px; }
.footer-about p { max-width: 262px; color: rgba(255, 255, 255, .65); font-size: 14px; line-height: 26px; }
.footer-about a { color: inherit; }
.footer-col h5 {
    color: rgba(255, 255, 255, .33);
    font-size: 14px;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 40px;
}
.footer-col ul { list-style: none; }
.footer-col li a { color: rgba(255, 255, 255, .59); font-size: 14px; font-weight: 500; line-height: 26px; transition: color .2s; }
.footer-col li a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 80px; }
.footer-bottom p { color: rgba(255, 255, 255, .75); font-size: 15px; line-height: 28px; }

/* old footer: tablet = logo column full width over three columns; phone = everything stacked and centred */
@media (max-width: 1024px) {
    .site-footer { padding: 50px; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-about { grid-column: 1 / -1; padding-bottom: 30px; }
    .footer-logo img { margin-top: 0; }
    .footer-about p { max-width: none; }
}
@media (max-width: 767px) {
    .site-footer { padding: 50px 20px; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; row-gap: 50px; }
    .footer-about { padding-bottom: 0; }
    .footer-logo { display: block; }
    .footer-logo img { margin: -20px auto 20px; }
    .footer-col h5 { font-size: 11.86px; line-height: 12px; margin-bottom: 20px; }
    .footer-col li a { font-size: 13.68px; line-height: 26.8px; }
    .footer-bottom { flex-direction: column; margin-top: 80px; }
    .footer-bottom p { font-size: 13.68px; line-height: 25px; }
}

/* ---------- contact popup (old Elementor popup 20987) ---------- */
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
.contact-modal[hidden] { display: none; }
.contact-modal-frame {
    position: relative;
    width: 450px;
    max-width: 100%;
    margin: auto;
    padding: 30px;
    background: linear-gradient(#6dad39 39%, #9b9b9b 19%);
    font-family: "Roboto", sans-serif;
}
.contact-modal-close {
    position: absolute;
    top: 6px; right: 7px;
    width: 23px; height: 23px;
    border: none;
    background: none;
    color: #fff;
    font-size: 30px;
    line-height: 20px;
    cursor: pointer;
}
.contact-modal-box {
    background: #fbfaf2;
    padding: 10px;
    outline: 1px dashed #7a7a7a;
    outline-offset: -10px;
    text-align: center;
}
.contact-modal-box > * { margin-left: 11px; margin-right: 11px; }
.contact-modal-box h2 { margin-top: 11px; color: #000; font-size: 26px; font-weight: 400; line-height: 1; text-transform: uppercase; }
.contact-modal-lead { margin: 20px 11px 21px; color: #54595f; font-size: 18px; line-height: 25px; }
.contact-modal-form input,
.contact-modal-form textarea {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, .4);
    background: #fff;
    color: #333;
    font: 500 16px "Roboto", sans-serif;
}
.contact-modal-form input { height: 48px; }
.contact-modal-form textarea { height: 102px; padding: 5px 14px; resize: vertical; }
.contact-modal-form input::placeholder,
.contact-modal-form textarea::placeholder { color: #9e9e9e; }
.contact-modal-form button {
    width: 100%;
    height: 40px;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    font: 700 15px "Roboto", sans-serif;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    cursor: pointer;
}
.contact-modal-box h3 { margin-top: 20px; color: #000; font-size: 18px; font-weight: 400; line-height: 18px; }
.contact-modal-email { margin: 20px 11px 11px; font-family: "Montserrat", sans-serif; font-size: 22px; line-height: 33px; }
.contact-modal-email a { color: var(--teal); }
body.modal-open { overflow: hidden; }

/* ---------- inner page hero (only the standalone 500 page still uses it) ---------- */
.page-hero {
    background: var(--navy);
    color: #fff;
    padding: 160px 0 60px;
    text-align: center;
}
.page-hero h1 {
    color: #fff;
    font-size: 40px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* honeypot: hidden from people, still filled in by naive bots */
.hp-field {
    position: absolute !important;
    left: -10000px;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* ---------- error pages ---------- */
.error-wrap { max-width: 640px; margin: 0 auto; text-align: center; }
.error-wrap p { margin-bottom: 26px; }
