/* --- CORE TYPOGRAPHY --- */
.font-serif {
    font-family: 'Playfair Display', serif !important;
}

h1,
h2,
h3,
h4,
.font-serif {
    font-family: 'Playfair Display', serif !important;
}

/* --- DECORATIVE ELEMENTS --- */
.zigzag-pattern {
    background-image: linear-gradient(135deg, #8CA6B3 25%, transparent 25%),
        linear-gradient(225deg, #8CA6B3 25%, transparent 25%),
        linear-gradient(45deg, #8CA6B3 25%, transparent 25%),
        linear-gradient(315deg, #8CA6B3 25%, transparent 25%);
    background-position: 10px 0, 10px 0, 0 0, 0 0;
    background-size: 20px 20px;
    background-repeat: repeat-x;
}

/* --- FLUID ANIMATIONS & TRANSITIONS --- */
/* Global Fluid Transition */
* {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-500 {
    transition-duration: 500ms;
}

.duration-700 {
    transition-duration: 700ms;
}

.ease-out-expo {
    transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

/* Premium Hover Effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.10);
}

.group:hover .group-hover\:shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Specific Brand Hover for Fidelity */
.group:hover .group-hover\:text-brand {
    color: var(--clr-brand, #8CA6B3) !important;
}

.group:hover .group-hover\:text-\[\#8CA6B3\] {
    color: #8CA6B3 !important;
}

/* Ensure h3 inherits brand transition */
.group h3 {
    transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

button:active,
a:active {
    transform: scale(0.95);
}

/* --- MOBILE NAV (ARROWS) --- */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 1);
    border-radius: 9999px;
    padding: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    color: var(--clr-brand, #8CA6B3);
    z-index: 50;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow:active {
    transform: translateY(-50%) scale(0.95) !important;
}

.nav-prev {
    left: 8px;
}

.nav-next {
    right: 8px;
}

/* FIX: Ensure container is relative for arrows */
#gallery-grid,
#reviews-track-container {
    position: relative;
}

/* --- SCROLL HIDING --- */
.hide-scroll::-webkit-scrollbar {
    display: none !important;
}

.hide-scroll {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

@media (max-width: 768px) {

    /* Hide scrollbars everywhere on mobile */
    *::-webkit-scrollbar {
        display: none !important;
    }

    * {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }

    /* Remove horizontal line in mobile reviews */
    .border-t.border-gray-50 {
        border-top: none !important;
    }
}