:root {
    --dark: #171717;
    --muted: #666;
    --soft: #f6f7fb;
    --brand: #ffcc00;
    --accent: #4f46e5;
    --danger: #dc3545;
    --success: #198754;
    --text: #222;
    --white: #fff;
    --border: #eee;
    --shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
}

a {
    color: inherit;
}

.container {
    width: min(1140px, 92%);
    margin: auto;
}

.text-center {
    text-align: center;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 18px rgba(0, 0, 0, .08);
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 22px;
    min-width: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    flex-shrink: 0;
}

.brand-name {
    font-weight: 800;
    font-size: 22px;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-logo {
    max-height: 54px;
    max-width: 190px;
    object-fit: contain;
    display: block;
}

.main-nav {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-left: auto;
}

.main-nav > a,
.nav-dropdown > a {
    padding: 10px 12px;
    text-decoration: none;
    border-radius: 9px;
    font-weight: 700;
    font-size: 14px;
    color: #222;
    transition: .2s;
}

.main-nav > a.active,
.main-nav > a:hover,
.nav-dropdown.active > a,
.nav-dropdown > a:hover {
    background: #111;
    color: #fff;
}

.social-mini {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-mini a {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
    transition: .2s;
}

.social-mini a img {
    width: 17px;
    height: 17px;
}

.social-mini a:hover {
    background: #111827;
    color: #fff;
}

.nav-toggle,
.nav-close,
.mobile-menu-head,
.mobile-social,
.nav-backdrop {
    display: none;
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #111, #333);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 96px 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .52), rgba(0, 0, 0, .24));
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.05;
    margin: 0 0 16px;
    max-width: 850px;
}

.hero p {
    font-size: 18px;
    color: #e8e8e8;
    max-width: 720px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 17px;
    border-radius: 10px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-weight: 800;
    gap: 8px;
}

.btn-dark {
    background: #111;
    color: #fff;
}

.btn-brand {
    background: var(--brand);
    color: #111;
}

.btn-light {
    background: #fff;
    color: #111;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.section {
    padding: 80px 0;
}

.section-soft {
    background: var(--soft);
}

.section-highlight {
    background: linear-gradient(135deg, #fff7ed, #eef2ff);
}

.section-title {
    margin: 0 0 35px;
}

.section-title h2 {
    font-size: 36px;
    margin: 0 0 10px;
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.card h3 {
    margin-top: 0;
}

.icon-badge {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 16px;
}

.page-breadcrumb {
    background: linear-gradient(135deg, #1f1f1f, #444);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 55px 0;
    position: relative;
}

.page-breadcrumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.page-breadcrumb .container {
    position: relative;
    z-index: 1;
}

.page-breadcrumb h1 {
    margin: 0 0 10px;
    font-size: 42px;
}

.page-breadcrumb ol {
    display: flex;
    list-style: none;
    gap: 10px;
    justify-content: center;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.page-breadcrumb li::after {
    content: "/";
    margin-left: 10px;
    color: #aaa;
}

.page-breadcrumb li:last-child::after {
    content: "";
}

.product-card {
    overflow: hidden;
    padding: 0;
}

.product-img {
    height: 230px;
    background: linear-gradient(135deg, #ddd, #f6f6f6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-body {
    padding: 22px;
}

.form-group {
    margin-bottom: 17px;
}

label {
    display: block;
    font-weight: 800;
    margin-bottom: 7px;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px;
    font: inherit;
}

textarea {
    min-height: 130px;
}

.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.alert-success {
    background: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background: #f8d7da;
    color: #842029;
}

.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 30px;
    color: #fff;
    font-size: 12px;
}

.badge-pending {
    background: #f59e0b;
}

.badge-processing {
    background: #0d6efd;
}

.badge-completed {
    background: #198754;
}

.badge-cancelled {
    background: #dc3545;
}

.site-footer {
    background: #1e1e1e;
    color: #fff;
    padding: 70px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.4fr 1fr;
    gap: 30px;
}

.footer-brand {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand h3 {
    margin: 0;
}

.footer-logo,
.footer-brand img {
    max-height: 64px;
    max-width: 210px;
    object-fit: contain;
    display: block;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: inherit;
    text-decoration: none;
    font-size: 13px;
    transition: .2s;
}

.footer-social a img {
    width: 17px;
    height: 17px;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, .16);
}

.copyright {
    background: #111;
    color: #ddd;
    padding: 20px 0;
    text-align: center;
}

.team-photo,
.gallery-photo {
    height: 260px;
    background: #eee;
    border-radius: 16px;
    overflow: hidden;
}

.team-photo img,
.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
}

.detail-img {
    background: #f2f2f2;
    border-radius: 22px;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: -38px;
    position: relative;
    z-index: 2;
}

.metric-card {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .09);
    text-align: center;
}

.metric-card b {
    font-size: 28px;
    display: block;
}

.banner-card {
    border-radius: 24px;
    overflow: hidden;
    min-height: 300px;
    background: #eee;
}

.banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   MOBILE MENU AND LAYOUT
========================================================= */

@media (max-width: 900px) {
    body.menu-open {
        overflow: hidden;
    }

    .site-header {
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(229, 231, 235, .9);
        z-index: 2000;
    }

    .nav-wrap {
        min-height: 72px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        flex-wrap: nowrap;
    }

    .brand {
        max-width: calc(100% - 64px);
        position: relative;
        z-index: 2002;
    }

    .brand-logo {
        max-height: 46px;
        max-width: 165px;
    }

    .brand-name {
        font-size: 18px;
        max-width: 190px;
    }

    .social-mini {
        display: none;
    }

    .nav-toggle {
        position: relative;
        z-index: 2003;
        display: inline-flex;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 14px;
        align-items: center;
        justify-content: center;
        background: #111827;
        color: #fff;
        font-size: 22px;
        cursor: pointer;
        box-shadow: 0 10px 24px rgba(17, 24, 39, .18);
        flex-shrink: 0;
    }

    .nav-backdrop {
        position: fixed;
        inset: 0;
        display: block;
        background: rgba(15, 23, 42, .42);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: .25s ease;
        z-index: 1500;
    }

    .nav-backdrop.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(86vw, 360px);
        height: 100vh;
        height: 100dvh;
        z-index: 2200;
        background: #fff;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-left: 0;
        padding: 24px 18px 24px;
        box-shadow: -18px 0 45px rgba(15, 23, 42, .16);
        transform: translateX(105%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform .28s ease, opacity .28s ease, visibility .28s ease;
        overflow-y: auto;
        overflow-x: hidden;
        border-radius: 24px 0 0 24px;
    }

    .main-nav.show {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-nav.show,
    .main-nav.show * {
        pointer-events: auto;
    }

    .nav-close {
        position: absolute;
        top: 20px;
        right: 18px;
        width: 42px;
        height: 42px;
        border: 0;
        border-radius: 14px;
        background: #f3f4f6;
        color: #111827;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
        z-index: 2201;
    }

    .mobile-menu-head {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 56px;
        padding-right: 56px;
        padding-bottom: 18px;
        margin-bottom: 8px;
        border-bottom: 1px solid #eef2f7;
    }

    .mobile-menu-logo {
        max-height: 46px;
        max-width: 160px;
        object-fit: contain;
        display: block;
    }

    .main-nav > a {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 15px;
        border-radius: 16px;
        color: #1f2937;
        background: #f8fafc;
        border: 1px solid #eef2f7;
        font-size: 15px;
        font-weight: 800;
        text-decoration: none;
        line-height: 1.3;
        white-space: normal;
    }

    .main-nav > a::after {
        content: "›";
        color: #9ca3af;
        font-size: 20px;
        line-height: 1;
    }

    .main-nav > a:hover,
    .main-nav > a.active {
        background: rgba(111, 124, 247, .12);
        border-color: rgba(111, 124, 247, .22);
        color: #5b63d8;
    }

    .mobile-social {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding-top: 14px;
        margin-top: 8px;
        border-top: 1px solid #eef2f7;
    }

    .mobile-social a {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        justify-content: center;
        padding: 9px 12px;
        border-radius: 999px;
        background: rgba(111, 124, 247, .1);
        color: #5b63d8;
        font-size: 13px;
        font-weight: 800;
        text-decoration: none;
    }

    .mobile-social a img {
        width: 16px;
        height: 16px;
    }

    .grid-3,
    .grid-4,
    .footer-grid,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 38px;
    }

    .metric-strip {
        grid-template-columns: 1fr 1fr;
        margin-top: 0;
    }

    .footer-logo,
    .footer-brand img {
        max-height: 56px;
        max-width: 180px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 72px 0;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 16px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 30px;
    }

    .metric-strip {
        grid-template-columns: 1fr;
    }

    .page-breadcrumb h1 {
        font-size: 34px;
    }

    .main-nav {
        width: min(90vw, 360px);
        border-radius: 20px 0 0 20px;
    }

    .filter-grid-inline {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 901px) {
    .nav-toggle,
    .nav-close,
    .mobile-menu-head,
    .mobile-social,
    .nav-backdrop {
        display: none !important;
    }

    .main-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    body.menu-open {
        overflow: auto;
    }
}