/* ===============================
   MANIAR PREMIUM HOME FINAL
   assets/css/premium-home.css
================================ */

:root {
    --p29-bg: #020812;
    --p29-card: #06101f;
    --p29-card2: #081527;
    --p29-blue: #009dff;
    --p29-orange: #ff8500;
    --p29-yellow: #ffb000;
    --p29-border: rgba(0,157,255,0.20);
    --p29-soft-border: rgba(255,255,255,0.08);
    --p29-text: #ffffff;
    --p29-muted: rgba(255,255,255,0.66);
}

body {
    background:
        radial-gradient(circle at top right, rgba(0,157,255,0.10), transparent 34%),
        radial-gradient(circle at top left, rgba(255,133,0,0.06), transparent 30%),
        var(--p29-bg) !important;
    overflow-x: hidden !important;
}

.p29-home {
    width: min(100%, 1920px);
    margin: 0 auto;
    padding: 18px 34px 30px;
    background: var(--p29-bg);
    color: #fff;
}

/* ===============================
   HERO
================================ */

.p29-hero {
    display: grid !important;
    grid-template-columns: minmax(480px, 0.54fr) minmax(620px, 1fr) !important;
    gap: 38px !important;
    align-items: center !important;
    min-height: 610px !important;
    padding: 40px 46px !important;
    border-radius: 22px !important;
    background:
        radial-gradient(circle at 72% 42%, rgba(0,157,255,0.18), transparent 30%),
        linear-gradient(120deg, rgba(4,14,29,0.98), rgba(3,10,20,0.98)) !important;
    border: 1px solid var(--p29-border) !important;
    overflow: hidden !important;
    box-shadow: 0 26px 80px rgba(0,0,0,0.30);
}

.p29-hero-text {
    min-width: 0;
    position: relative;
    z-index: 2;
}

.p29-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-weight: 950;
    margin-bottom: 28px;
}

.p29-badge span {
    width: 38px;
    height: 28px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    background: rgba(255,71,87,0.22);
    color: #fff;
    font-size: 14px;
    font-weight: 950;
}

.p29-hero h1 {
    font-size: clamp(62px, 5.5vw, 96px) !important;
    line-height: 0.95 !important;
    letter-spacing: -3px !important;
    color: #fff !important;
    margin: 0 0 18px !important;
    font-weight: 950 !important;
}

.p29-hero h1 span {
    display: block !important;
    color: var(--p29-orange) !important;
    text-shadow: 0 0 34px rgba(255,133,0,0.22);
}

.p29-hero h2 {
    font-size: clamp(28px, 2.2vw, 40px) !important;
    color: #fff !important;
    margin: 0 0 22px !important;
    font-weight: 950 !important;
    letter-spacing: 1px;
}

.p29-hero p {
    max-width: 680px;
    color: var(--p29-muted) !important;
    line-height: 1.7 !important;
    font-size: 21px !important;
    margin: 0 0 26px !important;
}

.p29-mini {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    margin: 0 0 30px !important;
}

.p29-mini div {
    display: grid !important;
    grid-template-columns: 58px 1fr !important;
    gap: 12px !important;
    align-items: center !important;
}

.p29-mini span {
    grid-row: span 2;
    width: 54px !important;
    height: 54px !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center !important;
    background: rgba(0,157,255,0.10) !important;
    border: 1px solid rgba(0,157,255,0.35) !important;
    font-size: 24px !important;
}

.p29-mini div:nth-child(2) span {
    background: rgba(255,133,0,0.10) !important;
    border-color: rgba(255,133,0,0.35) !important;
}

.p29-mini div:nth-child(3) span {
    background: rgba(255,48,80,0.10) !important;
    border-color: rgba(255,48,80,0.35) !important;
}

.p29-mini strong {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 950 !important;
}

.p29-mini small {
    color: rgba(255,255,255,0.68) !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
}

.p29-actions {
    display: flex !important;
    gap: 18px !important;
    flex-wrap: wrap !important;
}

.p29-btn {
    min-height: 66px !important;
    padding: 0 34px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    color: #fff !important;
    font-weight: 950 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 18px !important;
    transition: 0.22s ease;
}

.p29-btn:hover {
    transform: translateY(-2px);
}

.p29-main-btn {
    background: linear-gradient(135deg, var(--p29-orange), var(--p29-yellow)) !important;
    box-shadow: 0 20px 42px rgba(255,133,0,0.24) !important;
}

.p29-ghost-btn {
    background: rgba(255,255,255,0.035) !important;
    border: 1px solid rgba(0,157,255,0.44) !important;
}

/* ===============================
   HERO IMAGE RIGHT
================================ */

.p29-hero-image {
    min-height: 520px !important;
    height: 520px !important;
    width: 100% !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    border: 1px solid rgba(0,157,255,0.20) !important;
    background: rgba(0,0,0,0.18) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.p29-hero-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-radius: 20px !important;
    filter: contrast(1.05) saturate(1.08) !important;
}

/* fallback if no image */
.p29-fake-banner {
    width: 100%;
    height: 100%;
    min-height: 520px;
    position: relative;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, rgba(0,157,255,0.20), transparent 40%),
        linear-gradient(135deg, #06101f, #020812);
}

.p29-ring {
    position: absolute;
    width: 430px;
    height: 430px;
    border: 4px solid rgba(0,157,255,0.85);
    border-radius: 50%;
    box-shadow:
        0 0 35px rgba(0,157,255,0.7),
        inset 0 0 28px rgba(0,157,255,0.25);
}

.p29-phone {
    width: 165px;
    height: 270px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    background: linear-gradient(180deg, #06101f, #01050b);
    border: 2px solid rgba(255,255,255,0.20);
    position: relative;
    z-index: 4;
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}

.p29-phone span {
    font-size: 52px;
}

.p29-phone strong {
    color: #fff;
    font-size: 24px;
}

.p29-phone small {
    color: rgba(255,255,255,0.52);
    text-transform: uppercase;
}

.p29-item {
    position: absolute;
    z-index: 3;
    filter: drop-shadow(0 20px 35px rgba(0,0,0,0.45));
}

.p29-i1 {
    left: 55px;
    bottom: 85px;
    font-size: 120px;
}

.p29-i2 {
    left: 290px;
    bottom: 52px;
    font-size: 78px;
}

.p29-i3 {
    right: 120px;
    top: 145px;
    font-size: 96px;
}

.p29-i4 {
    right: 60px;
    bottom: 60px;
    font-size: 76px;
}

/* ===============================
   SERVICES STRIP
================================ */

.p29-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 16px;
    padding: 0 20px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(8,21,39,0.95), rgba(5,14,27,0.96));
    border: 1px solid rgba(0,157,255,0.20);
}

.p29-services div {
    min-height: 86px;
    display: grid;
    grid-template-columns: 60px 1fr;
    align-content: center;
    gap: 14px;
    padding: 12px 28px;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.p29-services div:last-child {
    border-right: 0;
}

.p29-services span {
    grid-row: span 2;
    color: var(--p29-blue);
    font-size: 34px;
    display: grid;
    place-items: center;
}

.p29-services strong {
    color: #fff;
    font-size: 18px;
    font-weight: 950;
}

.p29-services small {
    color: rgba(255,255,255,0.62);
    font-size: 14px;
}

/* ===============================
   PANELS
================================ */

.p29-panel {
    margin-top: 16px;
    padding: 22px 26px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(0,157,255,0.10), transparent 34%),
        linear-gradient(180deg, rgba(8,21,39,0.94), rgba(5,14,27,0.96));
    border: 1px solid rgba(0,157,255,0.20);
}

.p29-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.p29-head h3 {
    color: #fff;
    font-size: 25px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.p29-head a {
    color: var(--p29-blue);
    text-decoration: none;
    font-weight: 950;
    font-size: 17px;
}

/* ===============================
   SMALL TOP CATEGORIES
================================ */

.p29-cats {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.p29-cats::-webkit-scrollbar {
    display: none;
}

.p29-cat {
    flex: 0 0 auto;
    width: 128px;
    min-height: 124px;
    padding: 14px 10px;
    border-radius: 20px;
    text-decoration: none;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 8px;
    background:
        radial-gradient(circle at top, rgba(0,157,255,0.15), transparent 45%),
        rgba(255,255,255,0.035);
    border: 1px solid rgba(0,157,255,0.22);
    transition: 0.22s ease;
}

.p29-cat:hover {
    transform: translateY(-4px);
    border-color: rgba(255,133,0,0.45);
    background:
        radial-gradient(circle at top, rgba(255,133,0,0.16), transparent 45%),
        rgba(255,255,255,0.05);
}

.p29-cat span {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 32px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.09);
}

.p29-cat b {
    color: #fff;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 950;
}

/* ===============================
   FEATURED PRODUCTS
================================ */

.p29-products {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.p29-product {
    position: relative;
    min-height: 270px;
    padding: 18px;
    border-radius: 20px;
    text-decoration: none;
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(circle at top, rgba(0,157,255,0.12), transparent 45%),
        rgba(255,255,255,0.035);
    border: 1px solid rgba(0,157,255,0.22);
    transition: 0.22s ease;
}

.p29-product:hover {
    transform: translateY(-4px);
    border-color: rgba(255,133,0,0.35);
}

.p29-product-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 9px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--p29-orange), var(--p29-yellow));
    color: #fff;
    font-size: 11px;
    font-weight: 950;
}

.p29-heart {
    position: absolute;
    right: 12px;
    top: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.80);
    font-size: 22px;
    cursor: pointer;
}

.p29-product-img {
    width: 100%;
    height: 125px;
    display: grid;
    place-items: center;
    margin-top: 18px;
    margin-bottom: 10px;
    overflow: hidden;
}

.p29-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.p29-product-img span {
    font-size: 48px;
}

.p29-product strong {
    color: #fff;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 950;
}

.p29-product p {
    color: var(--p29-yellow);
    font-size: 19px;
    font-weight: 950;
    margin: 8px 0 0;
}

.p29-product em {
    width: 48px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255,133,0,0.08);
    border: 1px solid rgba(255,133,0,0.22);
    color: var(--p29-orange);
    font-style: normal;
    margin-top: 8px;
}

.p29-empty {
    padding: 20px;
    border-radius: 16px;
    color: rgba(255,255,255,0.66);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

/* ===============================
   HIDE OLD DUPLICATED HOME BLOCKS
================================ */

.premium-hero,
.premium-hero-new,
.premium-service-strip,
.premium-top-cats,
.premium-panel,
.premium-sections-grid,
.premium-hero-main,
.premium-hero-copy,
.premium-hero-visual {
    display: none !important;
}

/* ===============================
   LIGHT MODE: HOME STAYS DARK
================================ */

body.theme-light .p29-home,
body.theme-light .p29-home * {
    color: inherit;
}

body.theme-light .p29-home {
    background: var(--p29-bg) !important;
}

body.theme-light .p29-hero,
body.theme-light .p29-services,
body.theme-light .p29-panel {
    color: #fff !important;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 1500px) {
    .p29-hero {
        grid-template-columns: minmax(420px, 0.50fr) minmax(520px, 0.50fr) !important;
        gap: 28px !important;
    }

    .p29-hero h1 {
        font-size: clamp(54px, 5vw, 78px) !important;
    }

    .p29-hero-image {
        height: 460px !important;
        min-height: 460px !important;
    }

    .p29-products {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1050px) {
    .p29-hero {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
        padding: 26px !important;
    }

    .p29-hero-image {
        height: 340px !important;
        min-height: 340px !important;
    }

    .p29-mini {
        grid-template-columns: 1fr !important;
    }

    .p29-products {
        grid-template-columns: repeat(3, 1fr);
    }

    .p29-services {
        grid-template-columns: repeat(2, 1fr);
    }

    .p29-services div:nth-child(2) {
        border-right: 0;
    }
}

@media (max-width: 900px) {
    .p29-home {
        padding: 12px 12px 90px;
    }

    .p29-hero {
        padding: 22px !important;
        border-radius: 18px !important;
    }

    .p29-hero h1 {
        font-size: 48px !important;
        letter-spacing: -1px !important;
    }

    .p29-hero h2 {
        font-size: 24px !important;
    }

    .p29-hero p {
        font-size: 16px !important;
    }

    .p29-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .p29-btn {
        width: 100% !important;
    }

    .p29-hero-image {
        height: 290px !important;
        min-height: 290px !important;
    }

    .p29-services {
        grid-template-columns: 1fr;
    }

    .p29-services div {
        border-right: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .p29-services div:last-child {
        border-bottom: 0;
    }

    .p29-products {
        grid-template-columns: repeat(2, 1fr);
    }

    .p29-cat {
        width: 96px;
        min-height: 100px;
    }

    .p29-cat span {
        width: 48px;
        height: 48px;
        font-size: 25px;
    }

    .p29-head h3 {
        font-size: 20px;
        letter-spacing: 1px;
    }
}

@media (max-width: 520px) {
    .p29-products {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .p29-product {
        min-height: 230px;
        padding: 14px;
    }

    .p29-product-img {
        height: 100px;
    }

    .p29-product strong {
        font-size: 14px;
    }

    .p29-product p {
        font-size: 16px;
    }
}