/* ============================================
   HOMEPAGE REDESIGN - Rota Moulding
   ACF Free compatible (no repeaters)
   ============================================ */


/* ============================================
   SECTION 1: HERO BANNER
   ============================================ */
.hero-section {
    position: relative;
}

.hero-slide {
    position: relative;
    min-height: 80vh;
    background-size: cover;
    background-position: 50% 60%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 100px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
	background: linear-gradient(38deg, #000 -11.66%, rgba(0, 0, 0, 0.00) 64.63%);
}

.hero-slide-inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    color: #ffffff;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 15px;
    text-transform: uppercase;
}

.hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 22px;
    line-height: 1.4;
    margin: 0 0 50px;
}

.hero-buttons {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.btn-primary-hero {
    display: inline-flex;
    align-items: center;
    background-color: #059616;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 30px;
    border-radius: 0px;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
	line-height: 1.2;
}
.btn-primary-hero:hover { background-color: #248f24; }

.btn-secondary-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    color: #131313!important;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 15px 15px 20px;
	line-height: 1.2;
    border-radius: 0;
    text-decoration: none !important;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.btn-secondary-hero:hover {
	background-color: #059616;
    color: #fff!important;
}
.btn-secondary-hero:hover img {
	filter: invert(100%);
}
.hero-badge {
    position: relative;
    flex-shrink: 0;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 20px;
    border-radius: 0px;
    min-width: 310px;
    min-height: 120px;
}

.hero-badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.hero-badge-item.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-badge-item img {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
}

.hero-badge-item span {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    max-width: 200px;
}


/* ============================================
   SECTION 2: BEST SELLERS
   ============================================ */
.best-sellers-section {
    padding: 100px 0 70px;
    background-color: #ffffff;
	overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 65px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #131313;
    margin: 0;
    text-transform: uppercase;
}

/* 3-column Slick slider */
.best-sellers-slider {
    margin: 0 -20px;
}

.best-seller-card {
    padding: 0 20px;
}

.best-seller-link {
    display: block;
    text-decoration: none !important;
    border-radius: 0px;
    overflow: hidden;
}

.best-seller-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 3.35;
    overflow: hidden;
    background-color: #eeeeee;
    border-radius: 0px;
}

.best-seller-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.best-seller-link:hover .best-seller-img img {
    transform: scale(1.05);
}

/* Default overlay: title at bottom */
.best-seller-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    transition: opacity 0.3s ease;
}

.best-seller-overlay h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.3px;
}

/* Hover overlay: title + description + button */
.best-seller-hover {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.best-seller-hover h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
}

.best-seller-hover p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
	font-weight: 300;
    margin: 0 0 30px;
}

.best-seller-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    color: #131313!important;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 15px 10px 15px;
	line-height: 1.2;
    border-radius: 0;
    text-decoration: none !important;
    transition: border-color 0.2s ease, background-color 0.2s ease;
	width: fit-content;
}

.best-seller-btn img {
    width: 20px;
	height: 20px;
}

.slider-arrows button {
	padding: 0;
	border: 0;
	background: transparent;
}
.slider-arrows button img {
	width: 42px;
}

/* Show hover overlay, hide default overlay */
.best-seller-link:hover .best-seller-hover {
    opacity: 1;
}

.best-seller-link:hover .best-seller-overlay {
    opacity: 0;
}


/* ============================================
   SECTION 3: ABOUT ROTA MOULDING
   Stacked card image slider
   ============================================ */
.about-section {
    padding: 70px 0 150px;
    background-color: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Stacked Cards Container */
.about-stacked-cards {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 3 / 3.325;
    padding: 20px 60px;
}

.stacked-card {
    position: absolute;
    top: 20px;
    left: 90px;
    width: calc(100% - 120px);
    height: calc(100% - 40px);
    border-radius: 0px;
    overflow: hidden;
    cursor: pointer;
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease;
    will-change: transform;
}

.stacked-card.is-front {
    cursor: default;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

/* Position classes */
.stacked-card.card-left {
    transform: translateX(-120px) scale(0.85);
    z-index: 1;
}

.stacked-card.card-center {
    transform: translateX(0) scale(1);
    z-index: 3;
}

.stacked-card.card-right {
    transform: translateX(120px) scale(0.85);
    z-index: 1;
}
.stacked-card.card-hidden {
    transform: translateX(0) scale(0.8);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.stacked-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Label at the bottom */
.stacked-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 35px 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
}

.stacked-card-label span {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #131313;
    margin: 0 0 50px;
    text-transform: uppercase;
}

.about-text {
    color: rgba(19,19,19,0.8);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
	font-weight: 300;
}

.about-text p { margin: 0 0 15px; }
.about-content {
	position: relative;
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #1E1C92;
    color: #ffffff!important;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 15px 15px 20px;
	line-height: 1.2;
    border-radius: 0;
    text-decoration: none !important;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-outline:hover {
    background-color: #0D0C72;
}

.btn-outline svg { stroke: currentColor; }


/* ============================================
   SECTION 4: EXPLORE OUR PRODUCT RANGE
   ============================================ */
.product-range-section {
    padding: 100px 0;
    background-color: #1a1a8c;
    color: #ffffff;
}

.product-range-header {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto 45px;
}

.product-range-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 45px;
    text-transform: uppercase;
}

.product-range-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1.6;
	font-weight: 300;
    margin: 0px 0 70px;
}

.product-range-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-range-card {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.product-range-card:hover { transform: translateY(-4px); }

.product-range-card-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0;
}

.product-range-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    transition: transform 0.3s ease;
}

.product-range-card:hover .product-range-card-img img {
    transform: scale(1.05);
}

.product-range-card-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 0;
    gap: 20px;
}

.product-range-card-label {
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.product-range-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    transition: opacity 0.2s ease;
}


/* ============================================
   SECTION 5: CUSTOM / CONTRACT MOULDING
   ============================================ */
.custom-moulding-section { position: relative;}

.custom-moulding-bg {
    position: relative;
    background-size: cover;
    background-position: top center;
    padding: 80px 0;
    min-height: 650px;
    display: flex;
    align-items: center;
}
/* 
.custom-moulding-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        transparent 0%,
        transparent 40%,
        rgba(50, 50, 50, 0.7) 50%,
        rgba(50, 50, 50, 0.85) 100%
    );
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
} */

/* Blur only the right side using a pseudo-element */
.custom-moulding-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
	background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.custom-moulding-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.custom-moulding-spacer { /* Shows bg image on left */ }

.custom-moulding-content { color: #ffffff; }

.custom-moulding-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 30px;
    text-transform: uppercase;
    line-height: 1.2;
	max-width: 450px;
}

.custom-moulding-text {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
	font-weight: 300;
	max-width: 500px;
}

.custom-moulding-text p { margin: 0 0 15px; }

.custom-moulding-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    color: #131313!important;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 15px 15px 20px;
	line-height: 1.2;
    border-radius: 0;
    text-decoration: none !important;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.btn-outline-white:hover {
	background-color: #059616;
    color: #fff!important;
}
.btn-outline-white:hover img {
	filter: invert(100%);
}

.btn-primary-green {
    display: inline-flex;
    align-items: center;
    background-color: #059616;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 30px;
    border-radius: 0px;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
	line-height: 1.2;
}

.btn-primary-green:hover { background-color: #248f24; }


/* ============================================
   SECTION 6: FAQ
   ============================================ */
.faq-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.faq-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.faq-title {
    font-size: 32px;
    font-weight: 700;
    color: #131313;
    text-align: center;
    margin: 0 0 70px;
    text-transform: uppercase;
}

.faq-tabs {
    display: flex;
    gap: 0;
	width: 1000px;
    margin-bottom: 40px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    cursor: grab;
    scroll-behavior: smooth;
}

/* Hide scrollbar for Chrome/Safari */
.faq-tabs::-webkit-scrollbar {
    display: none;
}

/* When dragging */
.faq-tabs.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.faq-tab {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: 500;
    color: #1E1C92;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
    outline: none;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
}

.faq-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

.faq-tab:hover { border-bottom: 3px solid #1E1C92; }

.faq-tab.is-active { color: #1E1C92; border-bottom: 3px solid #1E1C92;}

.faq-tab.is-active::after { background-color: #1a1a8c; }

.faq-panel {
    display: none;
    width: 1000px;
    margin: 0 auto;
}

.faq-panel.is-active { display: block; }

.faq-item {
    border: 1px solid #e8e8e8;
    border-radius: 0px;
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 50px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 24px;
    font-weight: 500;
    color: #131313;
    outline: none;
    transition: background-color 0.2s ease;
    gap: 20px;
}


.faq-chevron {
    flex-shrink: 0;
    color: #131313;
    transition: transform 0.2s ease;
	width: 30px;
	height: 30px;
}

.faq-item.is-open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.is-open .faq-answer { max-height: 500px; }

.faq-answer-inner {
    padding: 0 50px 30px;
    font-size: 18px;
    color: rgba(19,19,19,0.7);
    line-height: 1.6;
}
.faq-answer-inner ul {
padding-left: 20px
}
.faq-answer-inner li {
	list-style: disc;
}

.faq-answer-inner p { margin: 0 0 10px; }


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-slide {
        min-height: 600px;
        padding-bottom: 50px;
		padding-top: 50px;
    }
	.hero-content {
		max-width: 700px;
	}
	.hero-overlay {
		background: linear-gradient(38deg, #000 -11.66%, rgba(0, 0, 0, 0.00) 94.63%);
	}
    .hero-content h1 { font-size: 32px; }

    .hero-slide-inner {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-stacked-cards {
        max-width: 450px;
        margin: 0;
    }
	.about-section {
		padding: 70px 0 100px;
	}

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

    .custom-moulding-grid { grid-template-columns: 1fr; }
    .custom-moulding-spacer { display: none; }
	.custom-moulding-overlay::after {
		width: 100%;
	}
	.custom-moulding-text, .custom-moulding-content h2 {
		max-width: 100%;
	}
    .faq-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
		width: 700px;
    }
	.faq-panel {
    width: 700px;
	}
}

@media (max-width: 767px) {
	.btn-primary-hero, .btn-secondary-hero { width: fit-content; }
	.hero-buttons {
		gap: 20px;
	}
	.btn-primary-hero {
		padding: 15px 15px 15px 20px;
	}
    .hero-slide {
        min-height: 350px;
        padding-bottom: 30px;
    }
	.hero-overlay {
		background: linear-gradient(38deg, #000 -11.66%, rgba(0, 0, 0, 0.25) 100%);
	}
	.best-seller-hover p {
		font-size: 16px;
	}
	.section-header {
		margin-bottom: 30px;
	}

    .hero-content h1 { font-size: 26px; }
    .hero-description { font-size: 16px; margin-bottom: 30px; }

    .section-header h2,
    .about-content h2,
    .product-range-header h2,
    .custom-moulding-content h2,
    .faq-title {
        font-size: 24px;
		text-align: left;
    }
	.product-range-header p {
		text-align: left;
	}
	.about-content h2, .faq-title {
		margin-bottom: 30px;
	}
	.about-text p, .product-range-header p, .custom-moulding-text p {
		font-size: 16px;
		text-align: left;
	}
	.btn-outline-white, .btn-primary-green {
		width: fit-content;
	}
	.btn-primary-green {
		padding: 15px 15px 15px 20px;
	}

    .best-sellers-section,
    .about-section,
    .faq-section {
        padding: 50px 0;
    }

    .best-sellers-grid {
        grid-template-columns: 1fr;
    }

    .product-range-section { padding: 50px 0; }

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

    .custom-moulding-bg {
        padding: 50px 0;
        min-height: auto;
    }

    .custom-moulding-overlay { background: rgba(0, 0, 0, 0.6); }

    .faq-tab {
        padding: 10px 14px;
        font-size: 16px;
    }
	.faq-tabs {
		width: 100%;
    }
	.faq-panel {
    width: 100%;
	}
	.faq-question {
		font-size: 20px;
		padding: 20px;
		line-height: 1.2;
	}
	.faq-answer-inner {
		font-size: 16px;
		padding: 0 20px 30px;
	}
	.about-stacked-cards {
        max-width: 350px;
    }
	.about-section {
		overflow: hidden;
	}
	/* Stacked Cards Container */
.about-stacked-cards {
    position: relative;
    aspect-ratio: 3 / 3.325;
    padding: 20px 60px;
}

.stacked-card {
    position: absolute;
    top: 20px;
    left: 30px;
    width: calc(100% - 60px);
    height: calc(100% - 20px);
}
	.about-content {
		margin-top: 30px;
	}

/* Position classes */
.stacked-card.card-left {
    transform: translateX(-50px) scale(0.85);
    z-index: 1;
}

.stacked-card.card-right {
    transform: translateX(50px) scale(0.85);
    z-index: 1;
}

/* Label at the bottom */
.stacked-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 35px 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
}

.stacked-card-label span {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}
	.product-range-header h2 {
		margin-bottom: 30px;
	}
	
}

@media (max-width: 480px) {
    .product-range-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-buttons { flex-direction: column; }
    .custom-moulding-buttons { flex-direction: column; }
}