/* ========================================
   BomBei Machinery — Redesigned Stylesheet
   Inspired by: industrial navy + white + green
   ======================================== */

:root {
    --navy:   #002d62;
    --navy2:  #003a80;
    --green:  #00c896;
    --white:  #ffffff;
    --light:  #f4f6f9;
    --text:   #1a1a2e;
    --muted:  #666;
    --border: #e0e4ea;
}

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

body {
    font-family: 'Barlow', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── NAVBAR ─────────────────────────────── */
.navbar {
    background: var(--white) !important;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    min-height: 70px;
    z-index: 1000;
}

.navbar-brand {
    padding: 10px 15px;
}

.navbar-brand img {
    height: 46px;
    width: auto;
}

.navbar-nav > li > a {
    color: var(--navy) !important;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 26px 22px !important;
    transition: color 0.2s;
}

.navbar-nav > li > a:hover,
.navbar-nav > li.active > a {
    color: var(--green) !important;
    background: transparent !important;
}

.navbar-nav > li.active > a {
    border-bottom: 3px solid var(--green);
}

.nav-lang {
    display: flex;
    align-items: center;
    padding: 22px 15px !important;
    font-size: 13px !important;
    color: var(--muted) !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    gap: 6px;
}

.nav-lang span { color: var(--border); }

.navbar-toggle {
    border-color: var(--navy) !important;
    margin-top: 18px;
}

.navbar-toggle .icon-bar {
    background-color: var(--navy) !important;
}

/* ── HERO CAROUSEL ───────────────────────── */
.hero-carousel {
    margin-top: 70px;
    position: relative;
}

.hero-carousel .carousel-inner {
    max-height: 520px;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    display: flex;
    align-items: stretch;
    height: 520px;
    background: #0a1628;
}

.hero-slide .machine-side {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.hero-slide .machine-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* thin green accent line at top */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--green);
    z-index: 10;
}

.hero-slide .info-panel {
    width: 340px;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 40px;
    position: relative;
    flex-shrink: 0;
}

.hero-slide .info-panel::before {
    content: '';
    position: absolute;
    top: 0; left: -40px; bottom: 0;
    width: 80px;
    background: var(--navy);
    transform: skewX(-3deg);
}

.hero-slide .info-panel .accent-line {
    width: 40px;
    height: 4px;
    background: var(--green);
    margin-bottom: 20px;
}

.hero-slide .info-panel .model-num {
    font-size: 38px;
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero-slide .info-panel .product-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1.6;
    margin-bottom: 28px;
}

.hero-slide .info-panel .hero-btn {
    display: inline-block;
    background: var(--green);
    color: var(--navy);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 28px;
    text-decoration: none;
    transition: all 0.25s;
    align-self: flex-start;
}

.hero-slide .info-panel .hero-btn:hover {
    background: var(--white);
    color: var(--navy);
    transform: translateX(4px);
}

.hero-carousel .carousel-indicators {
    bottom: 18px;
}

.hero-carousel .carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    margin: 0 5px;
}

.hero-carousel .carousel-indicators .active {
    background: var(--green);
    width: 28px;
    border-radius: 5px;
}

.hero-carousel .carousel-control {
    background: transparent;
    width: 50px;
    opacity: 0;
    transition: opacity 0.2s;
}

.hero-carousel:hover .carousel-control {
    opacity: 0.6;
}

/* ── PRODUCT TILES GRID ────────────────── */
.product-tiles {
    display: flex;
    flex-wrap: wrap;
}

.prod-tile {
    width: 25%;
    min-height: 320px;
    padding: 38px 32px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: filter 0.2s;
}

.prod-tile.dark  { background: var(--navy); }
.prod-tile.light { background: var(--white); border: 1px solid var(--border); }

.prod-tile:hover { filter: brightness(1.07); }

.prod-tile .tile-accent {
    width: 36px;
    height: 4px;
    background: var(--green);
    margin-bottom: 16px;
    flex-shrink: 0;
}

.prod-tile .tile-model {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.prod-tile.dark  .tile-model { color: var(--white); }
.prod-tile.light .tile-model { color: var(--navy); }

.prod-tile .tile-desc {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.6;
    flex-shrink: 0;
}

.prod-tile.dark  .tile-desc { color: rgba(255,255,255,0.65); }
.prod-tile.light .tile-desc { color: var(--muted); }

.prod-tile .tile-img {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 16px;
    overflow: hidden;
}

.prod-tile .tile-img img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.prod-tile:hover .tile-img img {
    transform: scale(1.06) translateY(-4px);
}

.prod-tile .tile-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,45,98,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.prod-tile:hover .tile-overlay { opacity: 1; }

.prod-tile .tile-overlay a {
    color: var(--white);
    background: var(--green);
    padding: 11px 28px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s;
}

.prod-tile .tile-overlay a:hover { background: var(--white); color: var(--navy); }

/* "View All" row below tiles */
.tiles-footer {
    background: var(--navy2);
    padding: 22px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tiles-footer span {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tiles-footer a {
    color: var(--white);
    background: var(--green);
    padding: 11px 32px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
}

.tiles-footer a:hover { background: var(--white); color: var(--navy); }

/* ── STATS BAR ──────────────────────────── */
.stats-bar {
    background: var(--light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
}

.stats-bar .stat-item {
    text-align: center;
    padding: 0 20px;
    border-right: 1px solid var(--border);
}

.stats-bar .stat-item:last-child { border-right: none; }

.stats-bar .stat-num {
    font-size: 42px;
    font-weight: 900;
    color: var(--navy);
    line-height: 1;
}

.stats-bar .stat-num span { color: var(--green); }

.stats-bar .stat-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 8px;
}

/* ── ABOUT STRIP ────────────────────────── */
.about-strip {
    display: flex;
    min-height: 420px;
}

.about-strip .about-img {
    flex: 1;
    overflow: hidden;
}

.about-strip .about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-strip .about-text {
    width: 520px;
    background: var(--navy);
    color: var(--white);
    padding: 70px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-strip .about-text .accent-line {
    width: 40px; height: 4px;
    background: var(--green);
    margin-bottom: 20px;
}

.about-strip .about-text h2 {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-strip .about-text p {
    font-size: 14px;
    line-height: 1.85;
    color: rgba(255,255,255,0.78);
    margin-bottom: 16px;
}

.about-strip .about-text .about-btn {
    display: inline-block;
    margin-top: 20px;
    background: var(--green);
    color: var(--navy);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 13px 32px;
    text-decoration: none;
    align-self: flex-start;
    transition: all 0.2s;
}

.about-strip .about-text .about-btn:hover {
    background: var(--white);
}

/* ── CONTACT CTA ────────────────────────── */
.contact-cta {
    background: var(--light);
    padding: 80px 0;
}

.contact-cta .section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 14px;
}

.contact-cta h2 {
    font-size: 36px;
    font-weight: 900;
    color: var(--navy);
    text-transform: uppercase;
    margin-bottom: 12px;
    line-height: 1.15;
}

.contact-cta p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 32px;
}

.cta-btn {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 16px 38px;
    text-decoration: none;
    transition: all 0.2s;
    margin-right: 14px;
}

.cta-btn:hover { background: var(--green); color: var(--navy); }

.cta-btn.outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.cta-btn.outline:hover { background: var(--navy); color: var(--white); }

.contact-info-block { padding: 50px 0 0 40px; }

.contact-info-block .ci-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-block .ci-item .ci-icon {
    width: 44px; height: 44px;
    background: var(--navy);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.contact-info-block .ci-item .ci-icon i { color: var(--green); font-size: 18px; }

.contact-info-block .ci-item .ci-text h5 {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--navy); margin-bottom: 4px;
}

.contact-info-block .ci-item .ci-text p {
    font-size: 14px; color: var(--muted); margin: 0;
}

/* ── FOOTER ────────────────────────────── */
footer {
    background: #001133;
    color: var(--white);
    padding: 60px 0 0;
}

footer .footer-logo {
    height: 44px; width: auto; margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

footer h5 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 20px;
}

footer p {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    line-height: 1.75;
}

footer .links {
    list-style: none;
    padding: 0;
}

footer .links li { margin-bottom: 10px; }

footer .links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

footer .links a:hover { color: var(--green); }

footer .footer-bottom {
    background: #000d24;
    margin-top: 50px;
    padding: 18px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.06em;
}

footer .social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

footer .social a {
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
}

footer .social a:hover {
    border-color: var(--green);
    color: var(--green);
}

/* ── SECTION TITLE (shared) ─────────────── */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title .label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 12px;
}

.section-title h2 {
    font-size: 34px;
    font-weight: 900;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.15;
    margin-bottom: 14px;
}

.section-title p {
    color: var(--muted);
    font-size: 15px;
}

/* ── PAGE HEADER (inner pages) ──────────── */
.page-header {
    background: var(--navy);
    color: var(--white);
    padding: 90px 0 60px;
    text-align: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: var(--green);
}

.page-header h1 {
    font-size: 40px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 14px;
    opacity: 0.7;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ── PRODUCTS PAGE ──────────────────────── */
.category-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}

.category-section:last-child { border-bottom: none; }

.category-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--green);
    display: inline-block;
    margin-bottom: 30px;
}

.category-title i { color: var(--green); margin-right: 10px; }

.category-desc {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 36px;
    max-width: 720px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

.product-item {
    background: var(--white);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.product-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--green);
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: left;
}

.product-item:hover::before { transform: scaleX(1); }

.product-item:hover {
    box-shadow: 0 12px 40px rgba(0,45,98,0.12);
    transform: translateY(-6px);
}

.product-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.product-item:hover img { transform: scale(1.04); }

.product-item .content { padding: 24px; }

.product-item h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

.product-item .model {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 16px;
}

.product-item .specs { font-size: 13px; color: #555; margin-bottom: 20px; }

.product-item .specs table { width: 100%; border-collapse: collapse; }

.product-item .specs td {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.product-item .specs td:first-child {
    font-weight: 700;
    color: var(--navy);
    width: 42%;
}

.product-item .btn {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    padding: 10px 24px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
}

.product-item .btn:hover { background: var(--green); color: var(--navy); }

/* ── BREADCRUMB ─────────────────────────── */
.breadcrumb-bar {
    background: var(--light);
    border-bottom: 1px solid var(--border);
    padding: 13px 0;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
}

.breadcrumb-bar a { color: var(--navy); text-decoration: none; }
.breadcrumb-bar a:hover { color: var(--green); }
.breadcrumb-bar span.sep { color: var(--border); margin: 0 10px; }
.breadcrumb-bar span.cur { color: var(--muted); }

/* ── PRODUCT DETAIL ─────────────────────── */
.detail-section { padding: 60px 0; }

.product-gallery .main-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border: 1px solid var(--border);
}

.product-gallery .thumb-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.product-gallery .thumb-row img {
    width: 110px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.product-gallery .thumb-row img.active,
.product-gallery .thumb-row img:hover {
    border-color: var(--green);
}

.product-info .product-cat-tag {
    display: inline-block;
    background: var(--green);
    color: var(--navy);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 14px;
    margin-bottom: 14px;
}

.product-info h2 {
    font-size: 28px;
    font-weight: 900;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}

.product-info .model-code {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 28px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 28px;
}

.specs-table thead th {
    background: var(--navy);
    color: var(--white);
    padding: 13px 18px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.specs-table tbody td {
    padding: 11px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: #444;
}

.specs-table tbody tr:nth-child(even) td { background: var(--light); }

.specs-table tbody td:first-child {
    font-weight: 700;
    color: var(--navy);
    width: 40%;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.06em;
}

.features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 28px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: #555;
}

.features-list li i { color: var(--green); font-size: 15px; flex-shrink: 0; }

.inquiry-box {
    background: var(--navy);
    color: var(--white);
    padding: 32px;
    margin-top: 20px;
}

.inquiry-box h4 {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.inquiry-box p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.inquiry-box .btn-inquiry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: var(--navy);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 26px;
    text-decoration: none;
    transition: all 0.2s;
    margin-right: 10px;
    margin-top: 6px;
}

.inquiry-box .btn-inquiry:hover { background: var(--white); }

.related-section { padding: 60px 0; background: var(--light); }

.related-card {
    background: var(--white);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
    margin-bottom: 24px;
}

.related-card:hover { box-shadow: 0 10px 30px rgba(0,45,98,0.12); transform: translateY(-4px); }

.related-card img { width: 100%; height: 170px; object-fit: cover; display: block; }

.related-card .rc-body { padding: 16px; }

.related-card .rc-body h5 {
    font-size: 14px;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.related-card .rc-body .rc-model {
    font-size: 11px;
    color: var(--green);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.related-card .rc-body a {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--navy);
    padding: 7px 18px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.related-card .rc-body a:hover { background: var(--green); color: var(--navy); }

/* ── SCROLL-TO-TOP ──────────────────────── */
.scroll-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 46px; height: 46px;
    background: var(--navy);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: all 0.25s;
    z-index: 999;
}

.scroll-to-top:hover { background: var(--green); color: var(--navy); }
.scroll-to-top.show { display: flex; }

/* ── ANIMATIONS ─────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fadeInUp { animation: fadeInUp 0.55s ease forwards; }

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 991px) {
    .hero-slide { height: auto; flex-direction: column; }
    .hero-slide .machine-side { height: 280px; }
    .hero-slide .info-panel { width: 100%; padding: 34px 28px; }
    .hero-slide .info-panel::before { display: none; }
    .hero-carousel .carousel-inner { max-height: none; }
    .about-strip { flex-direction: column; }
    .about-strip .about-text { width: 100%; padding: 50px 30px; }
    .prod-tile { width: 50%; }
}

@media (max-width: 600px) {
    .prod-tile { width: 100%; }
    .product-grid { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 26px; }
    .navbar-nav > li.active > a { border-bottom: none; }
}
