:root {
    --primary-red: #8b0000;
    --input-bg: #ebe5cc;
    --page-bg: #fcffd7;
    --section-bg: #e1dfc0;
    --footer-bg: #e1dfc0;
    --text-dark: #111;
    --placeholder-color: #000000;
    --font-wix: 'Wix Madefor Text', sans-serif;
    --font-syne: 'Syne', sans-serif;
    --font-arial: Arial, Helvetica, sans-serif;
}

body {
    font-family: var(--font-arial);
    background-color: var(--page-bg);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container-fluid {
    padding-left: 4%;
    padding-right: 4%;
}

/* Top Header */
.top-header {
    background-color: var(--primary-red);
    color: white;
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-logo {
    max-height: 50px;
    width: auto;
}

.menu-toggle {
    cursor: pointer;
    font-size: 16px;
    font-family: var(--font-wix);
    font-weight: 400;
    display: flex;
    align-items: center;
}

.top-header h1 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Offcanvas Slide Menu */
.offcanvas {
    background-color: #f9f9e0;
    color: #111;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.side-menu-nav .nav-link {
    color: #111;
    font-size: 24px;
    font-weight: 600;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.side-menu-nav .nav-link:hover {
    padding-left: 10px;
    color: var(--primary-red);
    background-color: rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    width: 100%;
    padding: 0 20px;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Form Section */
.form-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
}

.form-container {
    background-color: var(--primary-red);
    max-width: 500px;
    margin-left: auto;
    padding: 25px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 20px 40px;
    border-radius: 8px;
}

.form-title {
    color: #e2ddc1;
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    font-family: var(--font-syne);
}

.custom-form .form-label {
    color: white;
    font-size: 12px;
    margin-bottom: 3px;
    margin-top: 12px;
    display: block;
    font-family: var(--font-wix);
}

.custom-form .form-control, .custom-form .form-select, .custom-form .input-group-text {
    background-color: var(--input-bg);
    border: none;
    border-radius: 4px;
    height: 42px;
    font-size: 14px;
    color: var(--placeholder-color);
    margin-bottom: 18px;
    font-family: 'Wix Madefor Text';
}

.custom-form .form-control::placeholder,
.custom-form textarea.form-control::placeholder {
    color: var(--placeholder-color);
    opacity: 1;
}

.custom-form .form-select {
    color: var(--placeholder-color);
}

.custom-form .input-group-text {
    padding: 0 6px;
    gap: 4px;
}

.custom-form .form-control:focus,
.custom-form .form-select:focus {
    box-shadow: none;
    outline: 2px solid #e2ddc1;
    outline-offset: -2px;
}

.custom-form option {
    background-color: var(--input-bg);
    color: #333;
    padding: 10px;
}

.custom-form .form-step {
    display: none;
}

.custom-form .form-step.is-active {
    display: block;
}

.custom-form textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

.stage-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 14px;
    margin-bottom: 20px;
}


.stage-options .form-check {
    margin: 0px;
    min-height: auto;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.construction-stage-title {
    color: rgb(226, 221, 193);
    font-size: 14px;
    margin: 0 0px 22px;
    font-family: var(--font-wix);
    font-weight: 500;
    border-bottom: solid 1px rgb(226, 221, 193);
    display: inline-flex;
    padding-bottom: 5px;
    
}

.stage-options .form-check-text {
    color: #e2ddc1;
    font-size: 12px;
    line-height: 1.35;
    cursor: pointer;
}

.stage-options .form-check-input {
    margin-top: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--input-bg);
    border-radius: 50%;
    background-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
}

.stage-options .form-check-input::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.15s ease-in-out;
    background: var(--input-bg);
}

.stage-options .form-check-input:checked::before {
    transform: scale(1);
}

.stage-options .form-check-input:focus-visible {
    outline: 2px solid #e2ddc1;
    outline-offset: 2px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.btn-next,
.btn-back,
.btn-submit {
    background-color: #ebe5cc;
    border: none;
    border-radius: 4px;
    padding: 11px 40px 10px;
    font-size: 14px;
    float: right;
    transition: 0.3s;
    line-height: 20px;
    text-align: center;
}



.btn-back {
    color: #e2ddc1;
    background-color: transparent;
    border: solid 1px #e2ddc1;
}

.btn-back:hover {
    background-color:#e2ddc1;
    color: #000000;
}

.btn-submit {
    color: #333;
}

.btn-submit:hover {
    background-color: #dcd6bc;
    color: #222;
}

.btn-next {
    color: #000000;
}

.btn-next:hover {
    background-color: #424742;
    color: white;
}

@media (max-width: 576px) {
    .stage-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Concept Bathrooms */
.concept-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--page-bg);
}

.section-title {
    font-weight: 700;
    font-size: 60px;
    margin-bottom: 24px;
    color: rgb(17, 17, 17);
    font-family: var(--font-syne);
}

.concept-subtitle {
    font-size: 20px;
    max-width: 730px;
    margin: 0px auto 50px;
    color: #000000;
    line-height: 28px;
    font-weight: 400;
    font-family: var(--font-wix);
}

.concept-carousel {
    max-width: 1000px;
    margin: 0 auto;
}

.concept-carousel img {
    width: 100%;
    display: block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.concept-caption {
    margin-top: 25px;
    font-weight: 700;
    font-size: 28px;
    color: #222;
    font-family: var(--font-syne);
}

/* Catalogues */
.catalogue-section {
    padding: 50px 0;
    background-color: var(--section-bg);
}

.catalogue-title {
    font-weight: 700;
    font-size: 38px;
    margin-bottom: 80px;
    line-height: 38px;
    color: rgb(17, 17, 17);
    font-family: var(--font-syne);
}

.catalogue-item {
    margin-bottom: 100px;
}

.catalogue-item-title {
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 10px;
    color: #000000;
    font-family: var(--font-wix);
    line-height: 18px;
}

.catalogue-desc {
    font-size: 16px;
    color: #000000;
    line-height: 24px;
    max-width: 428px;
    font-weight: 400;
    font-family: var(--font-wix);
}

.catalogue-images {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 30px;
}

.catalogue-img {
    width: 100%;
    max-width: 240px;
    margin-left: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    display: block;
}

.carousel-control-next,
.carousel-control-prev {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 8%;
    padding: 0;
    color: #fff;
    text-align: center;
    background: 0 0;
    border: 0;
    opacity: inherit;
    transition: opacity .15s ease;
    margin-bottom: 60px;
    /* Offset to center arrows on the image rather than the whole container */
}

/* Video Gallery */
.video-section {
    padding: 80px 0;
    background-color: var(--page-bg);
}

.video-title {
    font-weight: 700;
    font-size: 56px;
    margin-bottom: 30px;
    color: rgb(17, 17, 17);
    font-family: var(--font-syne);
    line-height: 62px;
}



.video-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    cursor: pointer;
}

.video-wrapper img {
    width: 100%;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.video-overlay .top-text {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
    opacity: 0.9;
}

.video-overlay h3 {
    font-size: 56px;
    font-weight: 700;
    line-height: 84px;
    margin-bottom: 14px;
    font-family: var(--font-syne);
}

.play-btn {
    font-size: 36px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.play-btn:hover {
    color: #ddd;
}

.play-btn span {
    font-size: 18px;
    border-bottom: solid 1px #fff;
    font-weight: 400;
    font-family: var(--font-wix);
}

/* Footer */
.footer {
    padding: 40px 0;
    background-color: var(--footer-bg);
    font-size: 13px;
}

.footer-brand {
    font-family: var(--font-syne);
    font-size: 28px;
    font-weight: 700;
    color: #111;
    line-height: 36px;
}

.icon-fb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: #111;
    color: var(--footer-bg);
    border-radius: 50%;
    font-size: 20px;
    text-decoration: none;
    transition: 0.3s;
}

.icon-ig {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #111;
    background-color: transparent;
    font-size: 38px;
    text-decoration: none;
    transition: 0.3s;
}

.icon-fb:hover {
    background-color: var(--primary-red);
    color: #fff;
}

.icon-ig:hover {
    color: var(--primary-red);
}

.footer-links a {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    font-size: 15px;
    font-family: var(--font-wix);
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary-red);
}

@media (max-width: 768px) {
    .hero-banner {
        flex-direction: column;
        height: auto;
        border-radius: 20px;
        margin: 0 20px;
    }

    .banner-g {
        width: 100%;
        height: 80px;
        font-size: 50px;
    }

    .banner-img-container {
        width: 100%;
        height: 150px;
    }

    .banner-text {
        text-align: center;
        border-left: none;
        border-top: 4px solid var(--primary-red);
    }

    .catalogue-images {
        align-items: center;
        margin-top: 40px;
    }

    .video-overlay h3 {
        font-size: 24px;
    }

    .video-overlay .top-text {
        font-size: 18px;
    }

    .footer-links {
        align-items: center;
        margin-top: 20px;
    }

    .footer .text-md-end {
        text-align: center !important;
    }

    .footer .text-center.mb-3 {
        margin-top: 20px;
    }
}

/* Portfolio Page Styles */
.concept-section {
    padding: 80px 0 40px;
    background-color: var(--page-bg);
    text-align: center;
}

/* .section-title {
    font-family: var(--font-syne);
    font-size: 42px;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
} */

/* .concept-subtitle {
    font-family: var(--font-wix);
    font-size: 16px;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
} */

.portfolio-gallery {
    padding: 20px 0 30px;
    background-color: var(--page-bg);
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    group: relative;
}

.portfolio-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    color: #fff;
    font-family: var(--font-syne);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.4;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay h4 {
    transform: translateY(0);
}

.portfolio-overlay p {
    color: #eee;
    font-family: var(--font-wix);
    font-size: 15px;
    margin-bottom: 0;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    transition-delay: 0.1s;
}

.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

/* Category Detail Page Styles */
.category-detail-section {
    padding: 60px 0 0;
    background-color: var(--page-bg);
}

.project-title {
    font-family: var(--font-syne);
    font-size: 60px;
    font-weight: 700;
    color: #111;
    margin-bottom: 60px;
    line-height: normal;
}

.project-main-img {
    width: 100%;
    margin-bottom: 24px;
    object-fit: cover;
}

.project-grid-img {
    width: 100%;
    object-fit: cover;
}

.next-project-link {
    font-family: var(--font-wix);
    font-size: 18px;
    color: #111;
    text-decoration: none;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
    gap: 7px;
}

.next-project-link:hover {
    color: var(--primary-red);
}

@media (max-width: 768px) {
    .project-title {
        font-size: 32px;
    }
}

/* Product Full-Screen Popup */
.product-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--page-bg);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1060;
    padding: 10px;
}

.popup-expand {
    position: absolute;
    top: 30px;
    left: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1060;
    padding: 10px;
}

.popup-content-wrapper {
    width: 90%;
    max-width: 1400px;
    height: 85vh;
    position: relative;
}

.popup-img-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-img {
    max-height: 80vh;
    object-fit: contain;
}

.popup-text-col {
    padding-left: 10%;
}

.popup-title {
    font-family: var(--font-syne);
    font-size: 36px;
    font-weight: 600;
    color: #111;
    margin-bottom: 25px;
}

.popup-desc {
    font-family: var(--font-wix);
    font-size: 16px;
    color: #333;
    line-height: 1.8;
}

.custom-carousel-nav {
    display: none;
    /* Old class removed */
}

.popup-nav-prev,
.popup-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1060;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-nav-prev svg,
.popup-nav-next svg {
    transition: transform 0.2s ease;
}

.popup-nav-prev:hover svg {
    transform: translateX(-5px);
}

.popup-nav-next:hover svg {
    transform: translateX(5px);
}

/* Normal Mode Positioning */
.popup-nav-prev {
    left: auto;
    right: 100%;
    /* Placed exactly at the left edge of the image column */
}

.popup-nav-next {
    left: 50%;
    /* Placed exactly at the right edge of the image column */
    right: auto;
}

/* Fullscreen Mode Styles */
.product-popup.fullscreen-mode .popup-text-col {
    display: none !important;
}

.product-popup.fullscreen-mode .popup-img-col {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
}

.product-popup.fullscreen-mode .popup-img {
    height: 100vh;
    width: 100%;
    max-height: 100vh;
    object-fit: contain;
}

.product-popup.fullscreen-mode .popup-content-wrapper {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
}

.product-popup.fullscreen-mode .popup-nav-prev {
    display: flex;
    left: 2vw;
}

.product-popup.fullscreen-mode .popup-nav-next {
    left: auto;
    right: 2vw;
}

/* Arrow Hiding Logic (for ends of carousel) */
#productPopup.hide-prev .popup-nav-prev,
#productPopup.hide-next .popup-nav-next {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Icon Toggles */
.product-popup .icon-shrink {
    display: none;
}

.product-popup.fullscreen-mode .icon-expand {
    display: none;
}

.product-popup.fullscreen-mode .icon-shrink {
    display: block;
}
img.toggle {
    width: 30px;
}
@media (max-width: 768px) {
    .popup-text-col {
        padding-left: 15px;
        margin-top: 30px;
    }

    .popup-nav-prev,
    .popup-nav-next {
        display: none;
        /* Hide custom nav on mobile */
    }
}