/* COLORS */

.text-bordeaux {
    color: var(--bordeaux);
}
.bg-bordeaux {
    background-color: var(--bordeaux);
}
.text-grey {
    color: var(--light-grey);
}
.text-medium-grey {
    color: var(--medium-grey);
}
.btn.active  {
    background-color: #800020 !important;
}
#scroll-line {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #800020;
    z-index: 1001;
    transition: width 0.1s ease-out; 
    will-change: width;
}

/* LISTS */

.custom-list {
    list-style: none; 
    padding-left: 0;
}
.custom-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}
.custom-list li::before {
    content: "\2713";
    position: absolute;
    top: 0;
    left: 0;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1rem;
}

/* OFFCANVAS */ 

.offcanvas {
    height: 100vh !important;
    display: flex;
    flex-direction: column;
}
.offcanvas-body {
    flex-grow: 1;
    overflow-y: auto !important; 
    display: block !important;
    -webkit-overflow-scrolling: touch; 
}
#offcanvasMenu.offcanvas {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    visibility: hidden;
    border: none;
}
#offcanvasMenu.offcanvas.show {
    transform: translateX(0) !important;
    visibility: visible !important;
}
#offcanvasMenu.offcanvas.is-closing {
    transform: translateX(-100%) !important;
    visibility: visible !important;
}
#offcanvasMenu .offcanvas-body {
    padding: 0 !important;
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
#offcanvasMenu .offcanvas-body::-webkit-scrollbar { 
    display: none; 
}
#offcanvasMenu .menu-grid {
    display: grid;
    width: 100vw;
    margin: 0;
    padding: 0;
    grid-template-columns: 1fr;
    min-height: 100%; 
    grid-auto-rows: minmax(280px, auto); 
}
@media (min-width: 768px) {
    #offcanvasMenu .offcanvas-body { 
        overflow: hidden !important; 
    }
    #offcanvasMenu .menu-grid {
        height: 100vh;
        grid-auto-rows: unset;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: repeat(3, 1fr) !important;
    }
}
@media (min-width: 992px) {
    #offcanvasMenu .menu-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: repeat(2, 1fr) !important;
    }
}
.offcanvas-backdrop {
    transition: opacity 0.4s linear !important;
}
#offcanvasMenu.offcanvas.collapsing, #offcanvasMenu.offcanvas.show {
    transition: transform 0.4s ease-in-out;
}
#offcanvasMenu .menu-col {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
}
#offcanvasMenu .menu-col::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease, filter 0.6s ease;
    background-image: inherit; 
}
@media (min-width: 768px) {
    #offcanvasMenu .menu-col::before { 
        background-image: var(--bg-tablet) !important; 
    }
}
@media (min-width: 992px) {
    #offcanvasMenu .menu-col::before { 
        background-image: var(--bg-pc) !important; 
    }
}
#offcanvasMenu .menu-col::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(139, 0, 0, 0.5);
    opacity: 0.3;
    z-index: 2;
    transition: opacity 0.5s ease;
}
#offcanvasMenu .menu-label {
    position: relative;
    z-index: 10;
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px;
    display: block; 
    white-space: nowrap; 
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
#offcanvasMenu .menu-col:hover::before { 
    filter: blur(10px); 
    transform: scale(1.15); 
}
#offcanvasMenu .menu-col:hover::after { 
    opacity: 0.7; 
}
#offcanvasMenu .menu-col:hover .menu-label { 
    transform: scale(2.8) !important;
    mix-blend-mode: difference; 
}

/* HOME SECTION */

.video-bg-wrapper {
    position: fixed;
    top: 60px !important; 
    width: 100%;
    z-index: 1;
}
#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(1.1) contrast(1.1) saturate(1.1);
}
.content-layer {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.main-title {
    color: #ffffff;
    font-size: clamp(2rem, 10vw, 5rem);
    text-shadow: 0 2px 6px rgba(0,0,0,.7);
    letter-spacing: 2px;
}
.main-title span {
    display: block;
    color: #ffffff;
    font-size: clamp(1.2rem, 3vw, 3rem);
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0,0,0,.7);
    margin-top: 0.5rem;
    letter-spacing: unset;
}
.large-logo {
    filter: drop-shadow(0 0 6px rgba(0,0,0,.7));
}
section:not(#home) {
    position: relative;
    z-index: 10;
}

/* MODAL CASES */

body.modal-open {
    padding-right: 0 !important;
    overflow-y: auto !important;
}
body.modal-open .sticky-top {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}
#submitBtn:disabled {
    opacity: 0.7 !important;
    color: #ffffff !important;
    cursor: not-allowed;
}
.success-icon {
    font-size: 4rem;
    color: #198754;
    margin-bottom: 1rem;
    display: block;
}
.error-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 1rem;
    display: block;
}

/* AOS ANIMATION */

.fade-up > *, .fade-down > *, .fade-left > *, .fade-right > * {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: transform, opacity;
}
.fade-up > *    { 
    transform: translateY(40px); 
}
.fade-down > *  { 
    transform: translateY(-40px); 
}
.fade-left > *  { 
    transform: translateX(40px); 
}
.fade-right > * { 
    transform: translateX(-40px); 
}
.fade-up.active > *, .fade-down.active > *, .fade-left.active > *, .fade-right.active > * {
    opacity: 1;
    transform: translate(0, 0);
}

/* GALLERY STYLES*/

#gallery-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    box-sizing: border-box;
}
@media (min-width: 576px) {
    #gallery-container { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    #gallery-container { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1400px) {
    #gallery-container { grid-template-columns: repeat(4, 1fr); }
}
.gallery-item {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fafafa;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
/* Visual Scale Logic: Internal images shrink or grow to show real-world importance */
.gallery-item.w-sm img { max-width: 55%; max-height: 220px; }
.gallery-item.w-md img { max-width: 75%; max-height: 300px; }
.gallery-item.w-lg img { max-width: 90%; max-height: 380px; }
.gallery-item.w-xl img { max-width: 100%; max-height: 460px; }
.gallery-item a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}
.gallery-item img {
    width: auto;
    height: auto;
    object-fit: contain !important;
    display: block;
    transition: transform 0.2s ease-in-out;
}
.gallery-item a:hover img {
    transform: scale(1.02);
}
.pswp__scroll-wrap {
    width: 100vw;
    height: 100vh;
}
.pswp__caption-bottom {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: 90%;
    text-align: center;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 300;
    z-index: 999;
}
.pswp__bg {
    background: rgba(0,0,0,.9) !important;
}
.pswp__img {
    object-fit: contain !important;
}
.pswp__dynamic-caption--below {
    font-family: var(--Oswald);
    font-weight: 300;
    font-size: 1rem;
    max-width: 100%;
    padding: 15px 0 0;
    text-align: center !important;
}
.category-title {
    border-bottom: 1px solid #444444;
    padding-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ACCORDIONS */

.accordion-button:not(.collapsed) {
    color: #212121;
    background-color: #f2f2f2;
}
.accordion-button:focus {
    box-shadow: none;
}

/* CONTACT FORM */

body.modal-open {
    padding-right: 0 !important;
    overflow: auto;
}
.modal-open .fixed-top, .modal-open .fixed-bottom, .modal-open .is-fixed, .modal-open .sticky-top {
    padding-right: 0 !important;
}
#contact-section {
    padding: 60px 0;
}
.custom-input {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #202020 !important;
    border-radius: 0;
    padding: 12px;
    transition: all 0.3s ease;
}
.custom-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}
.custom-input:focus {
    background: rgba(0, 0, 0, 0.1);
    border-color: #212121;
    box-shadow: none;
    outline: none;
}
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
    -webkit-text-fill-color: #212121 !important;
    -webkit-box-shadow: 0 0 0px 1000px #2b2b2b inset;
    transition: background-color 5000s ease-in-out 0s;
}
.btn-submit {
    background: none;
    border: 1px solid #212121;
    color: #212121;
    padding: 10px 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
}
.btn-submit:hover {
    background: #ffffff;
    color: #000000;
}

/* HEADLINE TEXTS */

.slab-container {
    container-type: inline-size;
    width: 100%;
}
.slab-text {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1;
    gap: 0.5cqw; 
}
.slab-line {
    display: block;
    width: 100%;
}
.line-1 { 
    font-size: 11.5cqw; 
}
.line-2 { 
    font-size: 32.2cqw; 
}
.line-3 { 
    font-size: 13.6cqw; 
}
.line-4 { 
    font-size: 27.8cqw; 
}

/* WHATSAPP */

.wa-chat-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.wa-float-btn {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    margin: 0;
}

.wa-float-btn:hover { 
    transform: scale(1.1); 
}
.wa-chat-box {
    width: 320px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: none; 
    flex-direction: column;
    animation: waFadeIn 0.3s ease-out;
}
@keyframes waFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.wa-chat-header {
    background: #075e54;
    color: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wa-header-info strong { 
    display: block; font-size: 16px; 
}
.wa-header-info p { 
    font-size: 12px; margin: 0; opacity: 0.8; 
}
.wa-close { 
    cursor: pointer; font-size: 24px; line-height: 1; 
}
.wa-chat-body {
    padding: 25px 20px;
    background: #e5ddd5;
    background-image: url('..media/img/general/whatsapp-background.webp');
}
.wa-message {
    background: #ffffff;
    padding: 12px 15px;
    border-radius: 0 10px 10px 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
    max-width: 90%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.wa-chat-footer {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f0f0f0;
    gap: 8px;
}
#waInput {
    flex: 1;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    outline: none;
    font-size: 14px;
}
.wa-send-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: transform 0.2s;
}
.wa-send-icon-btn:hover { 
    transform: scale(1.1); 
}

/* PHOTOSWIPE SLIDERS */

/* Ensure the column itself allows for full height */
.pswp-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%; /* Take full height of the parent col-xl-6 */
    min-height: 600px; /* Adjust this to match your text block's height */
    overflow: hidden;
}

.slider-main-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.custom-slide {
    position: absolute;
    inset: 0; /* Top, Right, Bottom, Left: 0 */
    opacity: 0;
    transition: opacity 1.2s ease-in-out; /* Smooth artistic fade */
    z-index: 1;
}

.custom-slide.active {
    opacity: 1;
    z-index: 2;
}

.custom-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is what makes it "Fill" the container */
    display: block;
}

/* Arrows inside the image area */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 10;
    pointer-events: none;
}

.slider-arrow {
    pointer-events: auto;
    background: rgba(93, 14, 26, 0.7);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.slider-arrow:hover {
    background: rgba(93, 14, 26, 1);
}

/* MEDIA */

@media (min-width: 1200px) {
    #about .row {
        min-height: 100vh;
        overflow: hidden;
    }
}
@media (max-width: 1199px) {
    #about .row { 
        height: auto !important; 
    }
    .slab-text { 
        gap: 5px; 
        text-align: left;
    }
    .slab-line { 
        font-size: 12vw !important; 
    }
}
@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}
@media (max-width: 650px) {
    #home, #inner {
        margin-top: 60px;
    }
}