body {
    /* Solid background color for the site (excluding fastview, CTA, and recommended menu sections) */
    background-color: #f5f5f5;
    /* light neutral tone */
    /* Removed fixed background image */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Header height */
}

/* Right click visual prevention */
.anti-copy {
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version */
}

/* Margin Bottom as requested */
.section-gap {
    margin-bottom: 80px;
}

@media (min-width: 768px) {
    .section-gap {
        margin-bottom: 120px;
    }
}

/* Typography line heights */
p,
li,
div {
    line-height: 1.8;
}

/* Swiper overrides */
.fv-swiper {
    width: 100%;
    height: 100%;
}

.fv-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

.fv-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Parallax adjustment for iOS etc. */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

@media (max-width: 767px) {

    /* iOS often misbehaves with background-attachment: fixed, so setting scroll for mobile just in case, or leave fixed */
    .parallax-bg {
        background-attachment: scroll;
    }
}

/* Hamburger lines animation classes */
.hamburger-active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-active span:nth-child(2) {
    opacity: 0;
}

.hamburger-active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Specific layout adjustments */
img {
    vertical-align: bottom;
    /* Image gap fix */
}

/* Gallery Swiper adjustment */
.gallery-swiper {
    padding-bottom: 40px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px !important;
    font-weight: bold;
    color: #333;
    /* Make arrows visible in main gallery */
}

/* Modal specific overrides */
.modal-pagination {
    font-family: serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* Recommend section shimmer animation */
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    50% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ===== Scroll Reveal Animations ===== */

/* Base state: hidden before animation triggers */
.anim-fade-up,
.anim-fade-in,
.anim-fade-left,
.anim-fade-right {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.anim-fade-up {
    transform: translateY(40px);
}

.anim-fade-in {
    transform: none;
}

.anim-fade-left {
    transform: translateX(-40px);
}

.anim-fade-right {
    transform: translateX(40px);
}

/* Active state: visible after entering viewport */
.anim-fade-up.is-visible,
.anim-fade-in.is-visible,
.anim-fade-left.is-visible,
.anim-fade-right.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Stagger delays for child elements */
.anim-delay-1 {
    transition-delay: 0.1s;
}

.anim-delay-2 {
    transition-delay: 0.2s;
}

.anim-delay-3 {
    transition-delay: 0.3s;
}

.anim-delay-4 {
    transition-delay: 0.4s;
}

.anim-delay-5 {
    transition-delay: 0.5s;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    .anim-fade-up,
    .anim-fade-in,
    .anim-fade-left,
    .anim-fade-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Vertical text utility for typography background */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Custom fixed background for specific sections */
.bg-fixed-custom {
    background-image: url('../img/fixedbgs.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

@media (max-width: 767px) {
    .bg-fixed-custom {
        background-attachment: scroll;
    }
}

/* Specific padding adjustment for mobile SP .p-8 class */
@media (max-width: 767px) {

    .p-8,
    .p-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}