﻿/* Text Left Banner */
.powerline-line{
    width:400px;
    height:6px;
    background:#E3161D;
    margin:30px 0;
}

.powerline-content{
    max-width:550px;
    padding-left:15%;
}

/* Text Left Icon */
.icon-3 {
    width: 24px;
    flex-shrink: 0;
}

/* TextAndImage */
.text-image-icon {
    height: 56px;
    display: flex;
}

.text-image-icon__img {
    width: 25%;
    object-fit: contain;
    display: block;
}

/* Card Image Tile */
.info-tile{
    position:relative;
    height:360px;
    padding:2rem;
    border:1px solid #555;
    transition:all .3s ease;
    overflow:hidden;
}

.info-tile:hover{
    background:#E3161D;
    border-color:#E3161D;
}

.info-tile-icon{
    position:absolute;
    top:2rem;
    right:2rem;
    width:55px;
    height:55px;
    object-fit:contain;
    transition:opacity .3s ease;
}

.info-tile-line{
    width:30%;
    height:4px;
    background:#E3161D;
    margin-bottom:1rem;
}

.info-tile-default{
    position:absolute;
    left:2rem;
    right:2rem;
    bottom:2rem;
    transition:opacity .3s ease;
}

.info-tile-hover{
    position:absolute;
    left:2rem;
    right:2rem;
    bottom:2rem;

    opacity:0;
    visibility:hidden;
    transition:all .3s ease;

    color:#fff; /* tulisan putih */
}

.info-tile-hover h3,
.info-tile-hover p{
    color:#fff;
}

.info-tile:hover .info-tile-icon{
    opacity:0;
}

.info-tile:hover .info-tile-default{
    opacity:0;
}

.info-tile:hover .info-tile-hover{
    opacity:1;
    visibility:visible;
}

/* Image */
.hover-image-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    border-radius: 6px;
}

.hover-image {
    transition: transform .6s ease;
    border-radius: 6px;
}

.hover-image-wrapper:hover .hover-image {
    transform: scale(1.04);
}

/* HOME */
/* desktop only: on phones the header sits above the hero video */
@media (min-width: 992px){
    body[data-dw-page-id="6869"] header[data-swift-page-header]{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        /* stay below Bootstrap offcanvas/modal (1040+) so the cart panel and its close button sit on top */
        z-index: 1030;
        box-shadow: none;
    }

    /* the transparent header empties --bs-body-bg, which the cart badge uses for its text colour */
    body[data-dw-page-id="6869"] header[data-swift-page-header] .mini-cart-quantity{
        background-color: #E3161D;
        color: #fff;
    }

    /* all transparan before scroll */
    body[data-dw-page-id="6869"] header[data-swift-page-header] > section{
        background: transparent !important;
        --bs-body-bg: transparent;
        transition: .3s ease;
    }

    /* all blackstrip */
    body[data-dw-page-id="6869"] header[data-swift-page-header].scrolled
    section[data-dw-colorscheme="blackstrip"]{
        background: #23458F !important;
        --bs-body-bg: #23458F;
    }

    /* all headerapi */
    body[data-dw-page-id="6869"] header[data-swift-page-header].scrolled
    section[data-dw-colorscheme="headerapi"]{
        background: #ffffff !important;
        --bs-body-bg: #ffffff;
    }
}

/* Text Left List */
.partner-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:32px;
    margin-top:40px;
}

.partner-card{
    position:relative;
    background:#fff;
    border-radius:16px;
    padding:40px 32px 32px;
    box-shadow:0 8px 30px rgba(0,0,0,.08);
    transition:.3s;
    overflow:hidden;
}

.partner-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 45px rgba(0,0,0,.15);
}

.partner-card h3{
    color:#23458F;
    font-size:1.2rem;
    font-weight:700;
    margin-bottom:20px;
}

.partner-card ul{
    list-style:none;
    padding:0;
    margin:0;
}

.partner-card li{
    position:relative;
    padding-left:20px;
    margin-bottom:10px;
    color:#555;
}

.partner-card li::before{
    content:"▸";
    position:absolute;
    left:0;
    color:#E3161D;
    font-weight:bold;
}

/* Outline buttons on dark bands (hero, posters, CTA) */
[data-dw-colorscheme="blackstrip"] .btn-outline-secondary{
    color:#fff;
    border-color:#fff;
    background:transparent;
}

[data-dw-colorscheme="blackstrip"] .btn-outline-secondary:hover,
[data-dw-colorscheme="blackstrip"] .btn-outline-secondary:focus{
    color:#23458F;
    background:#fff;
    border-color:#fff;
}

/* Partner cards fill their grid column */
.partner-card{
    height:100%;
}


/* Header: centre the main menu on the page.
   The right-hand group (account, cart, search) is wider than the logo, so the
   menu column gets left padding to balance it; it shrinks on narrower screens
   so the menu never collides with the search field. */
header [id="22237"] .nav-wrapper > nav{
    justify-content:center;
}

header [id="22237"]{
    padding-left:clamp(0px, calc(100vw - 1110px), 225px);
}


/* Home: keep the About and Values images compact beside their text */
[id="22285"],
[id="22292"]{
    display:flex;
    justify-content:flex-end;
}

[id="22285"] .hover-image-wrapper,
[id="22292"] .hover-image-wrapper{
    max-width:460px;
    width:100%;
}


/* Header: white main bar with a hairline divider */
header[data-swift-page-header] section[data-dw-colorscheme="headerapi"]{
    border-bottom:1px solid #e3e6ee;
}

/* Home: while the header floats over the hero video, use white text + white logo */
/* desktop only */
@media (min-width: 992px){
    body[data-dw-page-id="6869"] header[data-swift-page-header]:not(.scrolled) section[data-dw-colorscheme="headerapi"]{
        border-bottom-color:transparent;
        color:#fff;
    }

    body[data-dw-page-id="6869"] header[data-swift-page-header]:not(.scrolled) section[data-dw-colorscheme="headerapi"] a,
    body[data-dw-page-id="6869"] header[data-swift-page-header]:not(.scrolled) section[data-dw-colorscheme="headerapi"] .nav-link,
    body[data-dw-page-id="6869"] header[data-swift-page-header]:not(.scrolled) section[data-dw-colorscheme="headerapi"] button{
        color:#fff;
    }

    body[data-dw-page-id="6869"] header[data-swift-page-header]:not(.scrolled) section[data-dw-colorscheme="headerapi"] figure.icon-auto svg path{
        fill:#fff;
        stroke:#fff;
    }
}

/* Home: partner logo tiles (greyscale, colour on hover) */
[id="22590"],
[id="22591"],
[id="22592"],
[id="22593"],
[id="22594"],
[id="22595"],
[id="22596"],
[id="22597"]{
    display:flex;
    align-items:center;
    justify-content:center;
    height:120px;
    padding:1rem 1.5rem;
    background:#fff;
    border:1px solid #e3e6ee;
    border-radius:6px;
}

[id="22590"] img,
[id="22591"] img,
[id="22592"] img,
[id="22593"] img,
[id="22594"] img,
[id="22595"] img,
[id="22596"] img,
[id="22597"] img{
    max-height:72px;
    width:auto;
    max-width:100%;
    object-fit:contain;
}

/* Footer (desktop + mobile footer pages, scheme "footerapi") */
footer section[data-dw-colorscheme="footerapi"] a{
    color:rgba(255,255,255,.85);
    transition:color .2s ease;
}

footer section[data-dw-colorscheme="footerapi"] a:hover,
footer section[data-dw-colorscheme="footerapi"] a:focus{
    color:#fff;
    text-decoration:underline;
}

footer section[data-dw-colorscheme="footerapi"] .nav-link{
    padding-left:0;
    padding-right:0;
}

footer section[data-dw-colorscheme="footerapi"] .btn{
    color:#fff;
    text-decoration:none;
}

/* Copyright bar: hairline divider above it */
footer section[data-dw-colorscheme="footerapi"] + section[data-dw-colorscheme="footerapi"]{
    border-top:1px solid rgba(255,255,255,.12);
}

@media (max-width: 991.98px){
    /* stack footer columns in their natural order on phones and tablets */
    footer section[data-dw-colorscheme="footerapi"] .grid > [data-swift-gridcolumn]{
        grid-column:span 12 !important;
        order:0 !important;
        margin-bottom:.75rem;
    }
}


/* Phones/tablets: large column gaps (3rem+) on a 12-column grid force the page wider
   than the screen (11 gaps x 48px = 528px). Use a 1rem gap below the lg breakpoint. */
@media (max-width: 991.98px){
    [data-dw-row-gap-column="4"] > .grid,
    [data-dw-row-gap-column="5"] > .grid,
    [data-dw-row-gap-column="6"] > .grid,
    [data-dw-row-gap-column="4"] .grid,
    [data-dw-row-gap-column="5"] .grid,
    [data-dw-row-gap-column="6"] .grid{
        column-gap:1rem;
    }

    footer section[data-dw-colorscheme="footerapi"] .grid{
        row-gap:1.5rem;
    }
}


/* Mobile header top bar: keep the phone number on one line */
header [id="22273"] p,
header [id="22235"] p{
    white-space:nowrap;
}


/* Home, phones/tablets: hide the phone + address bar above the menu */
@media (max-width: 991.98px){
    body[data-dw-page-id="6869"] header[data-swift-page-header] section:has([id="22273"]){
        display:none;
    }
}


/* About + Contact: icon cards (white card, red icon) */
[id="22609"],
[id="22610"],
[id="22611"],
[id="22612"],
[id="22613"],
[id="22614"],
[id="22615"],
[id="22616"],
[id="22617"]{
    height:100%;
    padding:1.75rem;
    background:#fff;
    border:1px solid #e3e6ee;
    border-radius:6px;
}

[id="22609"] .icon-3,
[id="22610"] .icon-3,
[id="22611"] .icon-3,
[id="22612"] .icon-3,
[id="22613"] .icon-3,
[id="22614"] .icon-3,
[id="22615"] .icon-3,
[id="22616"] .icon-3,
[id="22617"] .icon-3{
    width:28px;
    height:28px;
    flex-shrink:0;
    margin-right:.5rem;
}

[id="22609"] .icon-3 svg,
[id="22610"] .icon-3 svg,
[id="22611"] .icon-3 svg,
[id="22612"] .icon-3 svg,
[id="22613"] .icon-3 svg,
[id="22614"] .icon-3 svg,
[id="22615"] .icon-3 svg,
[id="22616"] .icon-3 svg,
[id="22617"] .icon-3 svg{
    width:28px;
    height:28px;
    fill:#E3161D;
}

/* Contact: enquiry form as a white card */
[id="22311"]{
    padding:2rem;
    background:#fff;
    border:1px solid #e3e6ee;
    border-radius:6px;
    box-shadow:0 8px 24px rgba(21,43,92,.06);
}


/* Phones: stack 3-column rows full width, in their natural order */
@media (max-width: 767.98px){
    [data-swift-gridrow="3Columns"] .grid > [data-swift-gridcolumn]{
        grid-column:span 12 !important;
        order:0 !important;
    }
}


/* Home, phones: capability cards one per row, in order */
@media (max-width: 767.98px){
    section:has([id="22288"]) .grid > [data-swift-gridcolumn]{
        grid-column:span 12 !important;
        order:0 !important;
    }
}


/* ===== Type scale (keep every section consistent) =====
   Page heading (h1)    52px desktop -> 36px phone
   Section heading      .h1 (39.8px) - unchanged
   Card title           .h5 (19.2px)
   Intro / body copy    .lead 18px (centred intros AND text-beside-image sections)
   Card text            16px
   Eyebrow              12.8px uppercase                                        */
main h1.display-4,
main h1.display-5{
    font-size:clamp(2.25rem, 1.5rem + 2.5vw, 3.25rem);
    line-height:1.15;
}

main .lead{
    font-size:1.125rem;
    line-height:1.6;
}

/* Trust strip figures use the heading font like every other heading */
[id="22586"] .display-5,
[id="22587"] .display-5,
[id="22588"] .display-5,
[id="22589"] .display-5{
    font-family:"Oswald", sans-serif;
    font-size:3rem;
    line-height:1.1;
}


/* ===== Product catalogue ===== */

/* Header band: category title (group names are stored in capitals -> sentence case) */
[id="20180"] .mw-75ch{
    margin-inline:auto;
}

[id="20180"] h1{
    display:inline-block;
    margin:0;
    color:#fff;
    font-size:clamp(2.25rem, 1.5rem + 2.5vw, 3.25rem);
    line-height:1.15;
    font-weight:700;
    text-transform:lowercase;
}

[id="20180"] h1::first-letter{
    text-transform:uppercase;
}

[id="20180"] .api-shop-lead{
    margin:.75rem auto 0;
    max-width:60ch;
    font-size:1.125rem;
    line-height:1.6;
    color:#fff;
}

/* Category names in sentence case: breadcrumb links, current category, category menu */
.breadcrumb-item a,
[id="20177"] .breadcrumb-item.active,
[id="20186"] .nav-link,
[id="20186"] span.fw-bold{
    display:inline-block;
    text-transform:lowercase;
}

.breadcrumb-item a::first-letter,
[id="20177"] .breadcrumb-item.active::first-letter,
[id="20186"] .nav-link::first-letter,
[id="20186"] span.fw-bold::first-letter{
    text-transform:uppercase;
}

/* Filters (sort + facets) above the category menu */
@media (min-width: 992px){
    #FacetsForm_Desktop_20186{
        display:flex !important;
        flex-direction:column;
    }

    #FacetsForm_Desktop_20186 > .border-bottom.py-2{
        order:10;
    }
}

/* Product cards */
article.product{
    padding:.75rem .75rem 1rem;
    background:#fff;
    border:1px solid #e3e6ee;
    border-radius:6px;
    transition:border-color .2s ease, box-shadow .2s ease;
}

article.product:hover{
    border-color:#c9d2e8;
    box-shadow:0 8px 24px rgba(21,43,92,.08);
}

article.product [id="19177"] .ratio{
    background:#fff;
    border-radius:4px;
    overflow:hidden;
}

article.product [id="19175"] h2{
    font-family:Roboto, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size:.9rem;
    line-height:1.35;
    font-weight:600;
    color:#1c2440;
}

article.product [id="22332"] > div{
    font-size:.8rem;
    color:#6b7280;
}

/* Sign-in prompts: only shown when price/add-to-cart render nothing (signed-out visitors) */
div[id="22622"][data-swift-gridcolumn]{
    display:none !important;
}

/* body.api-signed-out is set by custom-api.js when price/add-to-cart render empty */
body.api-signed-out div[id="22622"][data-swift-gridcolumn]{
    display:block !important;
    padding:1.25rem 1.5rem;
    background:#f3f5fa;
    border-left:4px solid #E3161D;
    border-radius:6px;
}


/* Product page: enquiry block (left column, under the image) */
[id="22621"]{
    padding:1.5rem;
    background:#fff;
    border:1px solid #e3e6ee;
    border-radius:6px;
}

[id="22621"] .icon-3{
    width:28px;
    height:28px;
    flex-shrink:0;
    margin-right:.5rem;
}

[id="22621"] .icon-3 svg{
    width:28px;
    height:28px;
    fill:#E3161D;
}

/* Hide empty spec/description headings */
[id="22312"] h2:empty,
[id="20198"] h2:empty{
    display:none;
}


/* Compact add-to-cart controls (product cards + product page) */
[data-dw-itemtype="swift-v2_productaddtocart"] .btn{
    padding:.4rem .9rem;
    font-size:.875rem;
    line-height:1.4;
}

[data-dw-itemtype="swift-v2_productaddtocart"] .form-control,
[data-dw-itemtype="swift-v2_productaddtocart"] .form-select{
    height:auto;
    min-height:0;
    padding-top:.4rem;
    padding-bottom:.4rem;
    font-size:.875rem;
    line-height:1.4;
}

[data-dw-itemtype="swift-v2_productaddtocart"] .icon-2,
[data-dw-itemtype="swift-v2_productaddtocart"] .icon-3{
    width:1.1rem;
    height:1.1rem;
}


/* Catalogue header band: paint the navy full width without changing layout width */
section:has([id="20180"]){
    box-shadow:0 0 0 100vmax #23458F;
    clip-path:inset(0 -100vmax);
}


/* Product page: keep the product slider inside the page (no sideways scroll) */
[id="20201"]{
    overflow-x:clip;
}


/* Home: dropdown menus sit on white, so keep their links dark while the header is transparent */
body[data-dw-page-id="6869"] header[data-swift-page-header]:not(.scrolled) section[data-dw-colorscheme="headerapi"] .dropdown-menu a,
body[data-dw-page-id="6869"] header[data-swift-page-header]:not(.scrolled) section[data-dw-colorscheme="headerapi"] .dropdown-menu .nav-link{
    color:#23458F;
}

body[data-dw-page-id="6869"] header[data-swift-page-header]:not(.scrolled) section[data-dw-colorscheme="headerapi"] .dropdown-menu a:hover,
body[data-dw-page-id="6869"] header[data-swift-page-header]:not(.scrolled) section[data-dw-colorscheme="headerapi"] .dropdown-menu a:focus{
    color:#E3161D;
}


/* Enquiry block: button lines up with the text (past the icon) */
[id="22621"] > div > .d-flex.flex-wrap{
    margin-top:1rem;
    padding-left:calc(28px + 1rem);
}

[id="22621"] [data-swift-text] p:last-child{
    margin-bottom:0;
}

/* When the enquiry block sits under the image, let the image area size to the image */
[id="20206"]:has([id="22621"]) .item_swift-v2_productmedia{
    height:auto !important;
}


/* Product page: "Need help" + "Trade pricing" cards side by side, equal height */
[id="22621"],
body.api-signed-out div[id="22622"][data-swift-gridcolumn]{
    height:100%;
}

[id="22622"] > div > .d-flex.flex-wrap{
    margin-top:1rem;
}


/* Home "Powering Australia's electrical infrastructure" poster:
   keep the copy on the darker left of the photo, with a soft navy gradient for legibility */
[id="22247"] [data-swift-poster] figure::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(90deg, rgba(21,43,92,.85) 0%, rgba(21,43,92,.55) 35%, rgba(21,43,92,0) 65%);
}

[id="22247"] [data-swift-text],
[id="22247"] [data-swift-text] + .d-flex{
    max-width:34rem;
}

/* Product details: use the row's own Swift spacing (top/bottom) instead of the colour-scheme content padding */
[data-swift-gridcolumn][data-dw-itemtype="swift-v2_productcomponentselector"] > section[data-swift-gridrow]{padding:var(--dw-row-space-top) 0 var(--dw-row-space-bottom) !important}
[data-swift-gridcolumn][data-dw-itemtype="swift-v2_productcomponentselector"] > section[data-swift-gridrow]:not(:has(.flex-fill *)){display:none}

/* Brand facet (product list filters): every brand shown as a toggle button */
.facet-brand-list{
    display:flex;
    flex-direction:column;
    gap:.375rem;
    padding-bottom:.5rem;
}
.facet-brand-toggle{
    position:relative;
    display:flex;
    align-items:center;
    gap:.625rem;
    width:100%;
    padding:.375rem .625rem;
    background:#fff;
    border:1px solid #e3e6ee;
    border-radius:6px;
    cursor:pointer;
    transition:border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.facet-brand-toggle:hover{
    border-color:#9aa3b5;
}
.facet-brand-toggle-input{
    position:absolute;
    opacity:0;
    width:1px;
    height:1px;
    pointer-events:none;
}
.facet-brand-toggle:has(.facet-brand-toggle-input:focus-visible){
    outline:2px solid #0d6efd;
    outline-offset:2px;
}
.facet-brand-toggle:has(.facet-brand-toggle-input:checked){
    border-color:#0d6efd;
    background:#eef4ff;
    box-shadow:inset 0 0 0 1px #0d6efd;
    font-weight:600;
}
.facet-brand-toggle[disabled]{
    opacity:.5;
    cursor:default;
}
.facet-brand-count{
    opacity:.7;
    font-size:.8125rem;
}
.facet-brand-logo{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 48px;
    width:48px;
    height:24px;
}
.facet-brand-logo img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}
