@charset "UTF-8";

/* Reset & Base */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* Vertical Writing for Nav */
.writing-vertical-rl {
    writing-mode: vertical-rl;
    text-orientation: upright;
}

/* Custom Scrollbar for Sidebar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

/* -------------------------------------------------------------
   Layout Phases (PC Only)
------------------------------------------------------------- */
@media (min-width: 1024px) {

    /* PHASE 1: FV ~ About (Split Layout) */
    .layout-phase-1 {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        position: relative;
    }

    /* Left Sticky Area (Now Scrollable Document Flow) */
    .sticky-sidebar {
        width: 35%;
        min-height: 100vh;
        height: auto;
        position: relative;
        z-index: 50;
        background-color: #FAFAF8;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 4rem 2rem;
        border-right: 1px solid rgba(0, 0, 0, 0.03);
    }

    /* Right Scroll Area (Now Sticky FV) */
    .scroll-content-area {
        width: 65%;
        position: sticky;
        top: 0;
        height: 100vh;
        overflow: hidden;
    }

    /* About Broken Grid */
    .about-broken-grid {
        margin-left: -5%;
        /* Pull left visually */
        width: 90%;
        margin-top: 10vh;
    }


    /* PHASE 2: Service ~ Footer (Standard Layout) */
    .layout-phase-2 {
        width: 100%;
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 4rem;
        /* Restore padding */
        position: relative;
        z-index: 20;
        /* Above any fixed bg */
        background-color: #FAFAF8;
    }

    /* Utility to break out of max-width container for full-width background */
    .break-out-full-width {
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        width: 100vw;
        max-width: 100vw;
        padding-left: 4rem;
        padding-right: 4rem;
    }

    /* Adjust section titles for Phase 2 */
    .layout-phase-2 .section-title-wrapper {
        display: flex;
        justify-content: center;
        margin-bottom: 5rem;
    }
}

/* Global resets for specific request */
img {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Adjust Section Spacing globally */
section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    section {
        padding-top: 10rem;
        padding-bottom: 10rem;
    }
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 2px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #B03A48;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    opacity: 0;
    animation-fill-mode: forwards;
    /* Animation is triggered by JS adding a class or IntersectionObserver, but here I'll use a simple utility class approach coupled with JS observer */
}

.fade-in-valid {
    animation: fadeInUp 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Ken Burns Effect for FV */
@keyframes kenburns {
    0% {
        transform: scale(1.0);
    }

    100% {
        transform: scale(1.1);
    }
}

.animate-kenburns {
    animation: kenburns 10s ease-out infinite alternate;
}

/* Swiper Fade Effect Override */
.swiper-slide {
    transition: opacity 1s ease-in-out;
}

/* Mobile Nav Animation */
#hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Utility Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Selection Color */
::selection {
    background: #B03A48;
    color: #fff;
}

/* FV Height Fix for mobile browsers */
#fv {
    aspect-ratio: 1 / 1;
    height: auto;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
}

@media (min-width: 1024px) {
    #fv {
        aspect-ratio: auto;
        height: 100vh;
        height: 100dvh;
    }
}