/* =========================================================
   Advent UI — modern professional layer (Polycab-inspired)
   ========================================================= */

:root {
    --ad-black: #0b0b0d;
    --ad-ink: #111318;
    --ad-panel: #14161c;
    --ad-panel-2: #1a1d26;
    --ad-border: rgba(255, 255, 255, 0.08);
    --ad-muted: #9aa3b2;
    --ad-text: #e8eaef;
    --ad-red: #e3262c;
    --ad-red-dark: #c51e23;
    --ad-surface: #f4f6fa;
    --ad-card: #ffffff;
    --ad-shadow: 0 16px 40px rgba(10, 12, 20, 0.12);
    --ad-radius: 16px;
}

.advent-site {
    font-family: "Manrope", system-ui, -apple-system, sans-serif;
    color: #1f2937;
    background: #fff;
}

.advent-site h1,
.advent-site h2,
.advent-site h3,
.advent-site h4,
.advent-site h5,
.advent-site h6,
.advent-site .display-4,
.advent-site .navbar-brand-text {
    font-family: "Jost", "Manrope", sans-serif;
    letter-spacing: -0.02em;
}

/* ---------- Dark header + mega menu ---------- */
.advent-header {
    background: var(--ad-black);
    position: sticky;
    top: 0;
    z-index: 1050;
    border-bottom: 1px solid var(--ad-border);
}

.advent-navbar {
    min-height: 72px;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.advent-navbar .navbar-brand {
    gap: 0.55rem;
}

.advent-navbar .navbar-logo {
    max-height: 42px;
}

.advent-navbar .navbar-brand-text {
    color: var(--ad-red) !important;
    font-weight: 700;
    font-size: 1.45rem;
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.advent-navbar .navbar-brand-sub {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

.advent-navbar .nav-link {
    color: rgba(255, 255, 255, 0.82) !important;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.55rem 0.7rem !important;
    position: relative;
}

.advent-navbar .nav-link:hover,
.advent-navbar .nav-link.active {
    color: #fff !important;
}

.advent-navbar .nav-link.active::after,
.advent-navbar .nav-link:hover::after {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.2rem;
    height: 2px;
    background: var(--ad-red);
    border-radius: 99px;
}

.advent-navbar .dropdown-toggle::after {
    display: none;
}

.mega-chevron {
    font-size: 0.65rem;
    opacity: 0.75;
    transition: transform 0.2s ease;
}

.mega-dropdown.show .mega-chevron,
.mega-dropdown:hover .mega-chevron {
    transform: rotate(180deg);
}

.btn-advent-nav {
    background: var(--ad-red);
    color: #fff !important;
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.15rem !important;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 8px 20px rgba(227, 38, 44, 0.35);
}

.btn-advent-nav:hover {
    background: var(--ad-red-dark);
    color: #fff !important;
    transform: translateY(-1px);
}

.advent-toggler {
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: 42px;
    height: 38px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.advent-toggler span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
}

.mega-menu {
    background: var(--ad-panel) !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: 0 0 18px 18px !important;
    padding: 1.75rem 1.25rem 1.5rem !important;
    margin-top: 0 !important;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
    position: absolute;
    z-index: 1060;
}

@media (min-width: 992px) {
    .mega-dropdown {
        position: static;
    }

    .mega-menu {
        display: none;
        width: 100%;
        left: 0 !important;
        right: 0 !important;
        top: 100%;
        padding: 2rem 0 1.75rem !important;
    }

    .mega-menu::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 3px;
        background: linear-gradient(90deg, #1d4ed8, var(--ad-red), #7c3aed);
    }

    .mega-dropdown:hover > .mega-menu,
    .mega-dropdown:focus-within > .mega-menu {
        display: block;
    }

    .mega-dropdown:hover .mega-chevron,
    .mega-dropdown:focus-within .mega-chevron {
        transform: rotate(180deg);
    }
}

.mega-menu-sm {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.mega-heading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.9rem;
}

.mega-heading i {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #fff;
}

.mega-link {
    display: block;
    color: var(--ad-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.28rem 0;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mega-link:hover {
    color: #fff;
    padding-left: 4px;
}

.mega-cta {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 2px;
}

.mega-cta:hover {
    color: var(--ad-red) !important;
    border-color: var(--ad-red);
}

.google-translate-wrapper {
    filter: brightness(1.1);
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
}

.lang-dropdown-btn {
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 0.35rem 0.85rem !important;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    min-height: 34px;
}

.lang-dropdown-btn:hover,
.lang-dropdown-btn:focus,
.lang-dropdown-btn.show {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    box-shadow: none !important;
}

.lang-dropdown-menu {
    background: #14161c !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 0.4rem !important;
    min-width: 150px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.lang-dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.82);
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
}

.lang-dropdown-menu .dropdown-item:hover,
.lang-dropdown-menu .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.lang-dropdown-menu .dropdown-item.active {
    background: var(--ad-red);
    color: #fff;
}

#google_translate_element,
.goog-te-banner-frame,
.skiptranslate,
body > .skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

.goog-te-gadget {
    display: none !important;
}

/* ---------- Buttons ---------- */
.advent-site .btn-primary {
    background: var(--ad-red) !important;
    border-color: var(--ad-red) !important;
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(227, 38, 44, 0.28);
}

.advent-site .btn-primary:hover {
    background: var(--ad-red-dark) !important;
    border-color: var(--ad-red-dark) !important;
}

.advent-site .btn-outline-primary {
    border-radius: 999px;
    font-weight: 700;
    border-width: 1.5px;
}

/* ---------- Hero / carousel ---------- */
.advent-site .carousel-caption {
    background: linear-gradient(120deg, rgba(8, 9, 12, 0.78), rgba(227, 38, 44, 0.28));
}

.advent-site .carousel-caption h2 {
    font-weight: 700;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

.advent-site #header-carousel .carousel-item {
    max-height: 78vh;
}

.advent-site #header-carousel .carousel-item img {
    object-fit: cover;
    min-height: 420px;
}

/* ---------- Feature cards ---------- */
.advent-site .feature-stat-card {
    background: #fff;
    border: 1px solid #e7ebf2;
    border-radius: 18px;
    box-shadow: var(--ad-shadow);
    min-height: 148px;
    padding: 1.4rem 1.5rem;
}

.advent-site .feature-stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #fff1f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advent-site .top-feature {
    position: relative;
    z-index: 2;
}

/* ---------- Page heroes ---------- */
.advent-site .bg-breadcrumb {
    padding: 100px 0 88px !important;
    background-color: #0b0b0d;
}

.advent-site .bg-breadcrumb::before {
    background: linear-gradient(115deg, rgba(8, 9, 12, 0.82), rgba(227, 38, 44, 0.4)) !important;
}

.advent-site .bg-breadcrumb h1 {
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
}

.advent-site .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.55);
}

/* ---------- Section helpers ---------- */
.section-eyebrow {
    color: var(--ad-red);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 0.65rem;
}

.section-title {
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.section-lead {
    color: #6b7280;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Vision / content cards ---------- */
.advent-site .vision-mission {
    background: linear-gradient(180deg, #f6f7fb 0%, #ffffff 100%);
}

.advent-site .vision-item,
.advent-site .mission-item,
.advent-site .quality-policy-content {
    border: 1px solid #e8ecf2 !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06) !important;
}

/* ---------- Products sidebar layout ---------- */
.products-sidebar-wrap {
    background: linear-gradient(180deg, #f6f7fb 0%, #fff 55%);
}

.products-sidebar-nav {
    background: var(--ad-panel) !important;
    border-radius: 18px !important;
    color: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.products-sidebar-nav h5 {
    color: #fff;
    font-weight: 700;
}

.products-sidebar-wrap .category-sidebar .nav-link {
    color: var(--ad-muted) !important;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.75rem 0.9rem;
    text-align: left;
}

.products-sidebar-wrap .category-sidebar .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05);
}

.products-sidebar-wrap .category-sidebar .nav-link.active {
    background: var(--ad-red) !important;
    color: #fff !important;
}

.products-sidebar-wrap .sidebar-product-card {
    border: 1px solid #e8ecf2;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.products-sidebar-wrap .sidebar-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.12);
}

.products-sidebar-wrap .sidebar-product-image {
    height: 190px;
    object-fit: contain;
    background: #f8f9fb;
    padding: 14px;
}

/* ---------- Services ---------- */
.advent-site .service {
    background: linear-gradient(180deg, #fff 0%, #f6f7fb 100%);
}

.advent-site .service-card {
    border: 1px solid #e8ecf2;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
}

.advent-site .service-card .card-img-top {
    height: 200px;
    object-fit: contain;
    background: #f8f9fb;
    padding: 18px;
}

.advent-site .service-card .card-title {
    font-weight: 700;
}

.advent-site .service-card .card-text {
    color: #6b7280;
    font-size: 0.94rem;
}

/* ---------- Footer polish ---------- */
.advent-site .footer {
    background: linear-gradient(180deg, #0f1117 0%, #090a0e 100%) !important;
}

.advent-site .factory-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.advent-site .back-to-top {
    border-radius: 12px;
}

/* ---------- Mobile nav ---------- */
@media (max-width: 991.98px) {
    .advent-header .navbar-collapse {
        background: var(--ad-panel);
        border: 1px solid var(--ad-border);
        border-radius: 14px;
        padding: 0.85rem;
        margin-top: 0.75rem;
    }

    .mega-menu {
        display: none;
        position: static !important;
        transform: none !important;
        border-radius: 12px !important;
        margin-top: 0.35rem !important;
        box-shadow: none;
        float: none;
    }

    .mega-dropdown.open > .mega-menu {
        display: block;
    }

    .mega-dropdown.open .mega-chevron {
        transform: rotate(180deg);
    }

    .advent-navbar .nav-link.active::after,
    .advent-navbar .nav-link:hover::after {
        display: none;
    }

    .btn-advent-nav {
        display: inline-block;
        margin-top: 0.5rem;
    }
}

/* ---------- About page ---------- */
.about-intro {
    background: #fff;
}

.about-intro-card {
    background: #f6f7fb;
    border: 1px solid #e8ecf2;
    border-radius: 18px;
    padding: 1.75rem;
}

.about-intro-card p {
    color: #4b5563;
    margin-bottom: 1rem;
}

.about-stat {
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 14px;
    padding: 1.1rem 1rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.05);
}

.about-stat strong {
    display: block;
    font-size: 1.4rem;
    color: var(--ad-red);
    font-family: Jost, Manrope, sans-serif;
}

.about-stat span {
    color: #6b7280;
    font-size: 0.85rem;
}

.about-promoter {
    background: linear-gradient(180deg, #f6f7fb 0%, #fff 100%);
}

.about-person-card {
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.about-person-card img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff1f1;
}

.about-copy-card,
.about-leader-card,
.product-info-card {
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
}

.about-leadership {
    background: #fff;
}

.about-leader-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
}

.about-leader-role {
    color: var(--ad-red);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.about-team-photo {
    background: #f6f7fb;
}

.about-team-frame {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e8ecf2;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}

.about-infra {
    background: #fff;
}

.infra-card,
.value-card {
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.infra-card:hover,
.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.1);
}

.infra-card-icon,
.value-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff1f1;
    color: var(--ad-red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.infra-number {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
    font-family: Jost, Manrope, sans-serif;
}

.about-values {
    background: linear-gradient(180deg, #f6f7fb 0%, #fff 100%);
}

/* ---------- Product detail page ---------- */
.product-detail-page {
    background: linear-gradient(180deg, #f6f7fb 0%, #fff 40%);
}

.product-detail-media {
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.07);
    text-align: center;
}

.product-detail-media img {
    max-height: 360px;
    width: auto;
    object-fit: contain;
}

.product-detail-badge {
    display: inline-block;
    background: #fff1f1;
    color: var(--ad-red);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.product-detail-title {
    font-weight: 700;
    color: #111827;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.product-detail-price {
    color: #6b7280;
    font-weight: 600;
}

.product-detail-desc {
    color: #4b5563;
    line-height: 1.7;
}

.product-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #eef1f6;
    color: #374151;
    font-weight: 500;
}

.product-feature-list li:last-child {
    border-bottom: 0;
}

.product-feature-list i {
    color: var(--ad-red);
    margin-top: 0.2rem;
}

.product-spec-wrap {
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
}

.product-spec-table {
    margin-bottom: 0;
}

.product-spec-table thead th {
    background: #111318;
    color: #fff;
    font-weight: 600;
    border: 0;
    padding: 0.9rem 1.1rem;
}

.product-spec-table tbody td {
    padding: 0.85rem 1.1rem;
    border-color: #eef1f6;
    vertical-align: middle;
}

.product-spec-table tbody tr:nth-child(even) {
    background: #f8f9fb;
}

.product-spec-table tbody td:first-child {
    font-weight: 600;
    color: #111827;
    width: 40%;
}
