@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%;
        position: relative;
        z-index: 20;
    }

    /* 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 !important;
    padding-bottom: 5rem !important;
}

@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;
    }

    .lg\:py-40 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* =============================================
   USP Cards — Clean Minimal Style
============================================= */
.usp-card {
    position: relative;
    background: linear-gradient(135deg, #fdfcf8 0%, #faf8f3 100%);
    border: 1px solid rgba(180, 140, 60, 0.2);
    border-left: 3px solid #B8882A;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.usp-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(184, 136, 42, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.usp-card:hover::before {
    opacity: 1;
}

.usp-card:hover {
    border-left-color: #B03A48;
    box-shadow: 0 4px 18px rgba(176, 58, 72, 0.1);
    transform: translateX(3px);
}

.usp-card-inner {
    padding: 0.9rem 1.2rem;
}

.usp-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2C2C2C;
    letter-spacing: 0.15em;
    line-height: 1.4;
    margin: 0;
    transition: color 0.35s ease;
}

.usp-card:hover .usp-title {
    color: #B03A48;
}

/* =============================================
   SP: Padding Override (under 1024px)
============================================= */
@media (max-width: 1023px) {
    .p-8,
    .px-8,
    .px-6 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .text-2xl {
        font-size: 1.3rem !important;
        line-height: 1.5rem !important;
    }

    .pl-4 {
        padding-left: 0px !important;
    }

    .p-6 {
        padding: 40px 10px !important;
    }
}

/* =============================================
   P Tag Font Sizes
============================================= */
p {
    font-size: 14px !important;
}

@media (min-width: 1024px) {
    p {
        font-size: 16px !important;
    }
}

/* Custom Tailwind Overrides */
@media (min-width: 1024px) {
    .lg\:px-8 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .lg\:p-8 {
        padding: 1rem !important;
    }
    .lg\:gap-10 {
        gap: 1rem !important;
    }
}

/* Voice Section Truncation */
.voice-content-wrapper {
    position: relative;
    max-height: 140px; /* Shows about 5-6 lines */
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.voice-content-wrapper.expanded {
    max-height: 1000px !important;
}

/* Gradient overlay to indicate more content */
.voice-content-wrapper:not(.no-overlay):not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background: linear-gradient(to top, #ffffff, rgba(255, 255, 255, 0));
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.voice-content-wrapper.no-overlay {
    max-height: none;
}

/* Toggle button styling */
.voice-toggle-btn {
    display: inline-block;
    margin-top: 15px;
    font-size: 12px;
    color: #B03A48; /* brand red */
    cursor: pointer;
    font-weight: bold;
    border-bottom: 1px dashed #B03A48;
    transition: all 0.3s ease;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    padding: 0 0 2px 0;
}

.voice-toggle-btn:hover {
    color: #6D5268; /* brand purple */
    border-bottom-color: #6D5268;
}

/* Ensure all cards have the same size/height on desktop */
@media (min-width: 768px) {
    .voice-swiper .swiper-wrapper {
        align-items: stretch !important;
    }
}