/* WPC Page CSS */
.site-content {
    padding-top: 20px !important;
    margin-top: 0 !important;
}

.wpc-page-wrapper {
    font-family: 'Inter', sans-serif;
    color: #333;
    padding-bottom: 40px;
    background-color: #fff;
}

/* WPC Banner */
.wpc-banner {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background-image: url('../landing-page-assets/decking/background.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpc-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.wpc-banner-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
}

.wpc-banner-title {
    font-size: 56px;
    font-weight: 500;
    letter-spacing: 0;
    margin: 0;
    text-transform: uppercase;
}

.wpc-banner-subtitle {
    font-size: 16px;
    font-weight: 300;
    margin-top: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Sections */
.wpc-section {
    max-width: 1410px;
    margin: 0 auto;
    padding: 50px 20px 20px 20px;
    text-align: center;
}

.wpc-section h4 {
    margin-bottom: 25px;
}

.wpc-section-title {
    font-size: 28px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 30px;
    color: #111;
}

/* WPC See All Button */
.wpc-see-all-btn {
    background-color: #fff !important;
    color: #111 !important;
    border: 1px solid #111 !important;
    transition: all 0.3s ease;
}

.wpc-see-all-btn:hover {
    background-color: #CAA05C !important;
    border-color: #CAA05C !important;
    color: #fff !important;
}

/* Grid Layouts */
.wpc-grid {
    display: grid;
    gap: 20px;
    justify-content: center;
}

.wpc-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.wpc-grid-7 {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.wpc-grid-9 {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

/* Responsive Grids */
@media (max-width: 1200px) {
    .wpc-grid-7 {
        grid-template-columns: repeat(4, 1fr);
    }

    .wpc-grid-9 {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Scrollable layout for balanced sizes */
.wpc-scrollable-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0 20px 30px;
    margin: 0 -20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (min-width: 1200px) {
    .wpc-scrollable-container {
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

.wpc-scrollable-container::-webkit-scrollbar {
    display: none;
}

.wpc-scrollable-container .wpc-card {
    flex: 0 0 auto;
    width: 420px; /* 1.5x size */
    scroll-snap-align: start;
    padding: 0 15px 15px; /* Removed top padding */
    justify-content: flex-start; /* Align contents to top */
}

.wpc-scrollable-container .wpc-card-dimension {
    width: 360px; /* 1.5x size */
    padding-top: 0;
}

.wpc-scrollable-container .wpc-card-accessory {
    width: 300px; /* 1.5x size */
    padding-top: 0;
}

.wpc-scrollable-container img {
    width: 100%;
    height: auto;
    max-height: 400px; /* Appropriate for 1.5x scaling */
    object-fit: contain;
}

@media (max-width: 992px) {
    .wpc-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .wpc-grid-7 {
        grid-template-columns: repeat(3, 1fr);
    }

    .wpc-grid-9 {
        grid-template-columns: repeat(3, 1fr);
    }

    .wpc-banner-title {
        font-size: 42px;
    }
}

@media (max-width: 600px) {
    .wpc-grid-4 {
        grid-template-columns: 1fr;
    }

    .wpc-grid-7 {
        grid-template-columns: repeat(2, 1fr);
    }

    .wpc-grid-9 {
        grid-template-columns: repeat(2, 1fr);
    }

    .wpc-banner-title {
        font-size: 32px;
    }
}

/* Card Styles */
.wpc-card {
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.wpc-card::after {
    display: none;
}

.wpc-card:hover {
    opacity: 1;
}

.wpc-card-vertical {
    aspect-ratio: auto;
    padding-bottom: 0;
}

.wpc-card-square {
    aspect-ratio: 1 / 1;
}

.wpc-card-wide {
    aspect-ratio: 2 / 1;
}

/* Typography inside cards */
.wpc-card-title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #111;
    text-transform: uppercase;
    line-height: 1.4;
    margin: 0;
}

.wpc-card-square .wpc-card-title,
.wpc-grid-9 .wpc-card-title {
    font-size: 12px;
}

/* Card description for installation steps */
.wpc-card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 8px 0 0 0;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

/* Card dimension specs */
.wpc-card-specs {
    font-size: 11px;
    color: #888;
    margin-top: 6px;
    line-height: 1.4;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

/* Dimension card with image */
.wpc-card-dimension {
    aspect-ratio: auto;
    padding: 15px 10px;
    min-height: 200px;
    justify-content: flex-start;
    padding-top: 20px;
}

.wpc-card-dimension .wpc-card-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 12px;
}

.wpc-card-dimension .wpc-card-title {
    font-size: 11px;
    margin-top: auto;
}

.wpc-card-dimension .wpc-card-specs {
    font-size: 10px;
    margin-top: 4px;
}

/* Accessory card with image */
.wpc-card-accessory {
    aspect-ratio: auto;
    padding: 12px;
    min-height: 170px;
    justify-content: flex-start;
    padding-top: 15px;
}

.wpc-card-accessory .wpc-card-img-placeholder,
.wpc-card-accessory img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 12px;
}

.wpc-card-accessory .wpc-card-title {
    font-size: 11px;
    margin-top: auto;
}

.wpc-card-accessory .wpc-card-specs {
    font-size: 10px;
    margin-top: 4px;
}

/* See Color CTA button on product cards */
.wpc-card-cta {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 18px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #CAA05C;
    color: #CAA05C;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.wpc-card-cta:hover {
    background: #CAA05C;
    color: #fff;
}

/* Product type cards with images */
.wpc-card-vertical img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Image Placeholder within card */
.wpc-card-img-placeholder {
    width: 60%;
    height: 60%;
    background: #f5f5f5;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpc-card-img-placeholder i {
    font-size: 24px;
    color: #ccc;
}

/* WPC Products Slider */
.wpc-products-slider-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.wpc-products-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.wpc-products-slider::-webkit-scrollbar {
    display: none;
}

.wpc-product-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    border: none;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: #333;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}

.wpc-product-card:hover {
    opacity: 1;
}

.wpc-product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wpc-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.wpc-product-info {
    padding: 20px;
    text-align: left;
}

.wpc-product-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.wpc-product-info p {
    margin: 0;
    font-size: 13px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 600px) {
    .wpc-product-card {
        flex: 0 0 80%;
    }
}

/* WPC Slider Controls */
.wpc-slider-controls {
    position: absolute;
    top: calc(50% - 60px);
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 100;
    padding: 0;
    box-sizing: border-box;
    left: 0;
}

.wpc-slider-btn {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #111;
    font-size: 16px;
    transition: all 0.3s ease;
    margin: 0 -22px;
}

.wpc-slider-btn:hover {
    background: #CAA05C;
    color: #fff;
    border-color: #CAA05C;
    transform: scale(1.05);
}

/* Installation Tabs */
.wpc-install-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #eaeaea;
}

.wpc-install-tab {
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    cursor: pointer;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
    background: none;
    font-family: 'Inter', sans-serif;
}

.wpc-install-tab:hover {
    color: #333;
}

.wpc-install-tab.active {
    color: #CAA05C;
    border-bottom-color: #CAA05C;
}

.wpc-install-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.wpc-install-img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f5f5f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    transition: all 0.3s ease;
}

.wpc-install-img-placeholder:hover {
    opacity: 1;
}

.wpc-install-img-placeholder i {
    font-size: 32px;
    color: #ddd;
}

@media (max-width: 992px) {
    .wpc-install-tabs {
        flex-wrap: wrap;
    }

    .wpc-install-tab {
        padding: 10px 16px;
        font-size: 12px;
    }

    .wpc-install-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .wpc-install-content {
        grid-template-columns: 1fr;
    }

    .wpc-install-tab {
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* WPC Features Grid (Warranty) */
.wpc-features-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.wpc-feature-item {
    text-align: center;
    max-width: 140px;
}

.wpc-feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #CAA05C;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 28px;
    color: #CAA05C;
    background: transparent;
    transition: all 0.3s ease;
}

.wpc-feature-item:hover .wpc-feature-icon {
    background: rgba(202, 160, 92, 0.08);
}

.wpc-feature-title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.4;
}

.wpc-feature-desc {
    color: #999;
    font-size: 11px;
    line-height: 1.4;
    margin: 6px 0 0 0;
    display: none;
}

@media (max-width: 768px) {
    .wpc-features-grid {
        gap: 30px 20px;
    }

    .wpc-feature-icon {
        width: 64px;
        height: 64px;
        font-size: 22px;
        margin-bottom: 10px;
    }

    .wpc-feature-title {
        font-size: 11px;
    }
}

/* Project Reference Carousel */
.wpc-project-ref {
    background: #f8f8f8;
    padding: 50px 0 40px;
    margin-top: 20px;
}

.wpc-project-ref h4 {
    text-align: center;
    margin-bottom: 25px;
    color: #111;
}

.wpc-project-ref-slider-wrapper {
    position: relative;
    max-width: 1410px;
    margin: 0 auto;
    padding: 0 60px;
}

.wpc-project-ref-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 10px;
}

.wpc-project-ref-slider::-webkit-scrollbar {
    display: none;
}

.wpc-project-ref-card {
    flex: 0 0 calc(33.333% - 14px);
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #e8e8e8;
    position: relative;
}

.wpc-project-ref-img-placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpc-project-ref-img-placeholder i {
    font-size: 32px;
    color: #ddd;
}

.wpc-project-ref-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.wpc-project-ref-card:hover img {
    transform: scale(1.04);
}

.wpc-project-ref-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpc-project-ref-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    font-size: 16px;
    z-index: 10;
    transition: all 0.3s ease;
}

.wpc-project-ref-nav:hover {
    background: #CAA05C;
    color: #fff;
    border-color: #CAA05C;
}

.wpc-project-ref-prev {
    left: 10px;
}

.wpc-project-ref-next {
    right: 10px;
}

@media (max-width: 992px) {
    .wpc-project-ref-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .wpc-project-ref-card {
        flex: 0 0 85%;
    }

    .wpc-project-ref-slider-wrapper {
        padding: 0 40px;
    }
}

/* WPC Subcategory Accordions */
.wpc-accordion-container {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wpc-accordion-item {
    background: #111;
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wpc-accordion-item:last-child {
    border-bottom: none;
}

.wpc-accordion-item.active {
    box-shadow: none;
    border-color: #CAA05C;
}

.wpc-accordion-header {
    width: 100%;
    min-height: 45vh;
    padding: 40px;
    background-color: #000;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: all 0.4s ease;
}

.wpc-accordion-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    transition: background 0.4s ease;
    z-index: 1;
}

.wpc-accordion-header:hover::before {
    background: rgba(0, 0, 0, 0.35);
}

.wpc-accordion-item.active .wpc-accordion-header::before {
    background: rgba(0, 0, 0, 0.75);
}

.wpc-accordion-header * {
    position: relative;
    z-index: 2;
}

.wpc-accordion-title {
    font-size: 56px;
    font-weight: 500;
    color: #fff;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.wpc-accordion-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    transition: all 0.4s ease;
    margin-top: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wpc-accordion-header:hover .wpc-accordion-icon {
    background: #CAA05C;
    border-color: #CAA05C;
    color: #fff;
    transform: translateY(5px);
}

.wpc-accordion-item.active .wpc-accordion-icon {
    transform: rotate(180deg);
    background: #CAA05C;
    border-color: #CAA05C;
    color: #fff;
}

.wpc-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #fff;
}

.wpc-accordion-content-inner {
    max-width: 1410px;
    margin: 0 auto;
    padding: 60px 20px;
}

@media (max-width: 992px) {
    .wpc-accordion-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .wpc-accordion-header {
        min-height: 35vh;
        padding: 30px 20px;
    }

    .wpc-accordion-title {
        font-size: 32px;
    }

    .wpc-accordion-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .wpc-accordion-header .wpc-accordion-icon {
        bottom: 15px;
        right: 15px;
    }
}

/* Decking / Fluted Panel / Cladding / Tile / Partition use pre-composited preview images
   (1290x429) with title + products baked in — skip the default darkening overlay and
   lock the container to the image aspect ratio so nothing gets cropped on mobile */
.wpc-accordion-header.wpc-decking-banner,
.wpc-accordion-header.wpc-fluted-panel-banner,
.wpc-accordion-header.wpc-cladding-banner,
.wpc-accordion-header.wpc-tile-banner,
.wpc-accordion-header.wpc-partition-banner {
    aspect-ratio: 1290 / 429;
    min-height: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .wpc-accordion-header.wpc-decking-banner .wpc-accordion-icon,
    .wpc-accordion-header.wpc-fluted-panel-banner .wpc-accordion-icon,
    .wpc-accordion-header.wpc-cladding-banner .wpc-accordion-icon,
    .wpc-accordion-header.wpc-tile-banner .wpc-accordion-icon,
    .wpc-accordion-header.wpc-partition-banner .wpc-accordion-icon {
        width: 30px;
        height: 30px;
        right: 12px;
        bottom: 12px;
        font-size: 12px;
    }
}

.wpc-decking-banner::before,
.wpc-fluted-panel-banner::before,
.wpc-cladding-banner::before,
.wpc-tile-banner::before,
.wpc-partition-banner::before {
    background: transparent !important;
}

.wpc-decking-banner:hover::before,
.wpc-fluted-panel-banner:hover::before,
.wpc-cladding-banner:hover::before,
.wpc-tile-banner:hover::before,
.wpc-partition-banner:hover::before {
    background: rgba(0, 0, 0, 0.0) !important;
}

.wpc-accordion-item.active .wpc-decking-banner::before,
.wpc-accordion-item.active .wpc-fluted-panel-banner::before,
.wpc-accordion-item.active .wpc-cladding-banner::before,
.wpc-accordion-item.active .wpc-tile-banner::before,
.wpc-accordion-item.active .wpc-partition-banner::before {
    background: rgba(0, 0, 0, 0.25) !important;
}


/* Move the down arrow to the bottom right corner */
.wpc-accordion-header .wpc-accordion-icon {
    position: absolute;
    bottom: 30px;
    right: 40px;
    margin-top: 0;
}
