/*
 * OSHANA Honey Cinematic Hero stylesheet (Single Video Version)
 * Styled for scroll-scrubbed video scrubbing.
 * Warm golden honey vibes, premium, natural, Japanese chic.
 */

:root {
    --color-cream: #F8F3EA; /* Ivory white background */
    --color-ink: #2a2928; /* Charcoal black */
    --color-gold: #C5A059; /* Soft honey gold */
    --color-gold-hover: #b08d4b;
    --color-gold-light: rgba(197, 160, 89, 0.2);
    --color-gray: #7a7671;
    --color-border: rgba(42, 41, 40, 0.1);
    
    --font-jp: 'Shippori Mincho', serif;
    --font-en: 'Cormorant Garamond', serif;
    
    --transition-slow: 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-medium: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: 0.3s ease;
    
    --header-height: 80px;
}

/* Base modifications for cinematic page */
.cinematic-body {
    background-color: var(--color-cream);
    color: var(--color-ink);
    font-family: var(--font-jp);
    line-height: 2;
    -webkit-font-smoothing: antialiased;
}

/* --- Navigation Header --- */
.navbar-story {
    background: linear-gradient(to bottom, rgba(248, 243, 234, 0.8) 0%, rgba(248, 243, 234, 0) 100%) !important;
    border-bottom: none !important;
}

.navbar.scrolled {
    background: rgba(248, 243, 234, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

/* --- Cinematic Scroll Hero --- */
.hero-scroll-section {
    position: relative;
    height: 500vh; /* Scroll length: 500vh total scroll length */
    background-color: var(--color-cream);
}

.hero-sticky-container {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    z-index: 5;
    background-color: var(--color-cream);
}

.scene-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.scene-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.scene-bg-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    display: block;
}

.hero-video-single {
    width: 100vw;
    height: 100vh;
    height: 100svh;
    object-fit: cover;
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 2;
    background: transparent;
    /* No color filters or overlays applied, keeping colors exactly as the video file */
}

/* Desktop override (video visible, poster hidden) */
@media (min-width: 769px) {
    .hero-video-single {
        display: block !important;
        z-index: 2;
    }
    .scene-bg-poster {
        display: none;
    }
}

/* Subtitle-style Text Overlay Containers */
.scene-content-container {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.scene-content {
    position: absolute;
    width: 100%;
    max-width: 580px; /* Desktop width max 580px */
    opacity: 0;
    pointer-events: none;
    
    /* CSS variables for scroll-controlled drift motion */
    --x-offset: 0px;
    --y-offset: 0px;
    --scale: 1;
    --glow: 0px;
    
    /* Smooth transition for active states */
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.scene-content.active {
    opacity: 1;
    pointer-events: auto;
}

/* Positioning rules: Desktop first */
.pos-left-center {
    left: 8%;
    top: 50%;
    transform: translate(var(--x-offset), calc(-50% + var(--y-offset))) scale(var(--scale));
    text-align: left;
}

.pos-lower-right {
    right: 8%;
    bottom: 15%;
    transform: translate(var(--x-offset), var(--y-offset)) scale(var(--scale));
    text-align: right;
}

.pos-upper-left {
    left: 8%;
    top: 15%;
    transform: translate(var(--x-offset), var(--y-offset)) scale(var(--scale));
    text-align: left;
}

.pos-right-side {
    right: 10%;
    top: 50%;
    transform: translate(var(--x-offset), calc(-50% + var(--y-offset))) scale(var(--scale));
    text-align: right;
}

.pos-near-flower {
    right: 12%;
    top: 30%;
    transform: translate(var(--x-offset), var(--y-offset)) scale(var(--scale));
    text-align: left;
}

.pos-lower-center {
    left: 50%;
    bottom: 15%;
    transform: translate(calc(-50% + var(--x-offset)), var(--y-offset)) scale(var(--scale));
    text-align: center;
}

.pos-left-lower {
    left: 8%;
    bottom: 15%;
    transform: translate(var(--x-offset), var(--y-offset)) scale(var(--scale));
    text-align: left;
}

.pos-center-lower-right {
    right: 12%;
    bottom: 18%;
    transform: translate(var(--x-offset), var(--y-offset)) scale(var(--scale));
    text-align: right;
}

.pos-final-reveal {
    left: 8%;
    bottom: 15%;
    transform: translate(var(--x-offset), var(--y-offset)) scale(var(--scale));
    text-align: left;
    max-width: 600px;
}

/* Subtitle-style Typography */
.subtitle-en, .final-lines-en .final-line {
    font-family: var(--font-en);
    font-size: clamp(48px, 4.8vw, 72px); /* desktop size: 48px - 72px */
    font-style: italic;
    color: var(--color-cream);
    letter-spacing: 0.06em;
    line-height: 1.3;
    /* Premium text shadows for maximum readability on video background */
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.85), 
                 0 0 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.subtitle-jp, .final-lines-jp .final-line {
    font-family: var(--font-jp);
    font-size: clamp(20px, 2.0vw, 28px); /* desktop size: 20px - 28px */
    font-weight: 300;
    color: var(--color-cream);
    letter-spacing: 0.15em;
    line-height: 1.7;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85),
                 0 0 24px rgba(0, 0, 0, 0.5);
    white-space: pre-line;
}

/* Final branding line: OSHANA 蜜 */
.final-lines-en .final-line.line-4 {
    font-size: clamp(64px, 6.0vw, 88px); /* desktop size: 64px - 88px */
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.1em;
    color: var(--color-cream);
    margin-top: 1rem;
}

/* Staggered Final Lines Styling */
.final-line {
    display: block;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.final-lines-en {
    margin-bottom: 1.2rem;
}

.final-lines-jp {
    margin-bottom: 1.8rem;
}

.final-cta {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Call to Action Button in final scene overlay */
.story-btn-outline {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    padding: 1rem 2.8rem;
    border: 1px solid var(--color-gold);
    color: var(--color-ink);
    background-color: rgba(248, 243, 234, 0.9);
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(197, 160, 89, 0.1);
    margin-top: 1.5rem;
}

.story-btn-outline:hover {
    background-color: var(--color-gold);
    color: var(--color-cream);
    box-shadow: 0 8px 30px rgba(197, 160, 89, 0.25);
    transform: translateY(-2px);
}

.story-btn-outline .btn-en {
    font-family: var(--font-en);
    font-size: 0.9rem;
    color: inherit;
    font-style: italic;
    display: block;
    margin-top: 4px;
}

.story-btn-outline:hover .btn-en {
    color: var(--color-cream);
}

/* Scroll progress indicator */
.hero-scroll-progress {
    position: absolute;
    bottom: 2.5rem;
    right: 3rem;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.hero-scroll-progress .progress-track {
    width: 160px;
    height: 2px;
    background-color: rgba(42, 41, 40, 0.15);
    position: relative;
    overflow: hidden;
}

.hero-scroll-progress .progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--color-gold);
}

.hero-scroll-progress .progress-indicator {
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-gold);
    text-transform: uppercase;
}

/* Centered Scroll Down helper for beginning */
.story-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.story-scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.indicator-text {
    font-family: var(--font-en);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gray);
}

.indicator-text-jp {
    font-family: var(--font-jp);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--color-gray);
    margin-top: 4px;
}

.indicator-line-container {
    position: relative;
    width: 1px;
    height: 60px;
    background-color: rgba(42, 41, 40, 0.15);
    overflow: hidden;
}

.indicator-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-gold);
    transform: translateY(-100%);
    animation: scrollIndicatorLoop 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes scrollIndicatorLoop {
    0% {
        transform: translateY(-100%);
    }
    50% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100%);
    }
}

/* Cinematic Tour controls */
.cinematic-controls {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1001;
}

.tour-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.6rem;
    background: rgba(248, 243, 234, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-gold);
    color: var(--color-ink);
    font-family: var(--font-en);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.tour-btn:hover {
    background: var(--color-ink);
    border-color: var(--color-gold);
    color: var(--color-cream);
    transform: translateY(-2px);
}

.tour-btn svg {
    width: 14px;
    height: 14px;
}

/* Letterbox formatting */
.cinema-bars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    pointer-events: none;
}

.cinema-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #000;
    transition: height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cinema-bar.top {
    top: 0;
}

.cinema-bar.bottom {
    bottom: 0;
}

body.cinema-mode .cinema-bar {
    height: 8vh;
}

body.cinema-mode .navbar {
    transform: translateY(-100%);
    transition: transform 0.6s ease;
}

body.cinema-mode .story-scroll-indicator {
    opacity: 0 !important;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .hero-scroll-progress {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .hero-scroll-progress .progress-track {
        width: 100px;
    }

    .story-btn-outline {
        padding: 0.9rem 2.2rem;
        font-size: 0.8rem;
    }
    
    .story-btn-outline .btn-en {
        font-size: 0.8rem;
    }

    .scene-content {
        max-width: 85vw !important;
        left: 50% !important;
        right: auto !important;
        text-align: center !important;
    }
    
    .subtitle-en, .final-lines-en .final-line {
        font-size: clamp(30px, 5.2vw, 42px) !important; /* mobile size: 30px - 42px */
        line-height: 1.3;
        margin-bottom: 0.4rem;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85), 0 0 16px rgba(0, 0, 0, 0.5);
    }
    
    .subtitle-jp, .final-lines-jp .final-line {
        font-size: clamp(15px, 3.6vw, 18px) !important; /* mobile size: 15px - 18px */
        line-height: 1.6;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85), 0 0 16px rgba(0, 0, 0, 0.5);
    }

    .final-lines-en .final-line.line-4 {
        font-size: clamp(42px, 7.0vw, 54px) !important; /* mobile size: 42px - 54px */
        margin-top: 0.6rem;
    }

    /* Standard mobile position anchors (safer top, center, bottom) */
    .pos-left-center, .pos-right-side {
        top: 50% !important;
        bottom: auto !important;
        transform: translate(calc(-50% + var(--x-offset)), calc(-50% + var(--y-offset))) scale(var(--scale)) !important;
    }
    
    .pos-lower-right, .pos-lower-center, .pos-left-lower, .pos-center-lower-right, .pos-final-reveal {
        top: auto !important;
        bottom: 12% !important;
        transform: translate(calc(-50% + var(--x-offset)), var(--y-offset)) scale(var(--scale)) !important;
    }
    
    .pos-upper-left, .pos-near-flower {
        top: 16% !important;
        bottom: auto !important;
        transform: translate(calc(-50% + var(--x-offset)), var(--y-offset)) scale(var(--scale)) !important;
    }

    /* Mobile Navbar wrap support to prevent horizontal overflow */
    .nav-links {
        gap: 0.8rem 1rem !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    /* Stack product details on mobile to prevent squeezing */
    .product-card .detail-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.2rem !important;
        padding: 0.8rem 0 !important;
    }
    
    .product-card .detail-value {
        text-align: left !important;
        width: 100% !important;
    }
}

/* --- Paantu Section Styles --- */
.section.paantu {
    background-color: var(--color-cream);
    padding: 8rem 0;
}

.paantu-header {
    max-width: 750px;
    margin: 0 auto 4rem auto;
}

.paantu-intro {
    margin-top: 1.5rem;
}

.paantu-intro .jp-body-highlight {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 2.0;
    letter-spacing: 0.12em;
    color: var(--color-ink);
    margin-bottom: 0.8rem;
    font-family: var(--font-jp);
}

.paantu-intro .en-body-highlight {
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.6;
    letter-spacing: 0.06em;
    color: var(--color-gray);
    font-family: var(--font-en);
}

.paantu-story-row {
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Align bottom to ground sleeping and standing figures naturally */
    gap: 4rem;
    margin-top: 3rem;
}

.paantu-story-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    max-width: 280px;
}

.paantu-img-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 1.5rem;
}

/* Specific desktop sizes based on layout constraints */
.card-sleeping .paantu-story-img {
    max-width: 190px; /* Supporting: max 140-190px */
    height: auto;
}

.card-flying .paantu-story-img {
    max-width: 170px; /* Supporting: max 140-190px */
    height: auto;
}

.card-standing .paantu-story-img {
    max-width: 240px; /* Main: max 220-280px */
    height: auto;
}

.paantu-story-img {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.03));
}

.paantu-story-card:hover .paantu-story-img {
    transform: translateY(-5px);
}

.paantu-story-meta .caption-en {
    font-family: var(--font-en);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--color-ink);
    margin-bottom: 0.3rem;
    letter-spacing: 0.05em;
}

.paantu-story-meta .caption-jp {
    font-family: var(--font-jp);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-gray);
    letter-spacing: 0.1em;
}

/* Mobile responsive styling */
@media (max-width: 768px) {
    .section.paantu {
        padding: 5rem 0;
    }
    
    .paantu-story-row {
        flex-direction: column;
        align-items: center;
        gap: 3.5rem;
        margin-top: 2.5rem;
    }
    
    .paantu-story-card {
        max-width: 100%;
    }
    
    .paantu-img-container {
        margin-bottom: 1rem;
    }
    
    /* Specific mobile dimensions */
    .card-sleeping .paantu-story-img {
        max-width: 150px; /* Supporting: max 130-160px */
    }
    
    .card-flying .paantu-story-img {
        max-width: 140px; /* Supporting: max 130-160px */
    }
    
    .card-standing .paantu-story-img {
        max-width: 200px; /* Main: max 180-220px */
    }
    
    .paantu-intro .jp-body-highlight {
        font-size: 0.95rem;
        line-height: 1.8;
    }
    
    .paantu-intro .en-body-highlight {
        font-size: 1.0rem;
        line-height: 1.5;
    }
}

/* --- Pricing Section Styles --- */
.pricing-container {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid var(--color-border);
}

.pricing-header {
    margin-bottom: 3.5rem;
}

.pricing-grid-title {
    font-family: var(--font-en);
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--color-ink);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.pricing-grid-subtitle-jp {
    font-family: var(--font-jp);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--color-ink);
    margin-bottom: 0.4rem;
}

.pricing-grid-subtitle-en {
    font-family: var(--font-en);
    font-size: 1.15rem;
    font-style: italic;
    letter-spacing: 0.06em;
    color: var(--color-gold);
    margin-bottom: 0;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.pricing-card {
    flex: 1;
    background-color: #fff;
    border: 1px solid rgba(197, 160, 89, 0.25);
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.5s var(--transition-medium), 
                border-color 0.5s var(--transition-medium), 
                box-shadow 0.5s var(--transition-medium);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 160, 89, 0.6);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.08);
}

.pricing-size {
    font-family: var(--font-en);
    font-size: 1.75rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--color-ink);
    margin-bottom: 0.2rem;
}

.pricing-price {
    font-family: var(--font-en);
    font-size: 1.45rem;
    font-weight: 400;
    color: var(--color-gold);
    letter-spacing: 0.05em;
}

.pricing-divider {
    width: 35px;
    height: 1px;
    background-color: rgba(197, 160, 89, 0.3);
    border: none;
    margin: 1.5rem 0;
}

.pricing-desc-jp {
    font-family: var(--font-jp);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--color-ink);
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.pricing-desc-en {
    font-family: var(--font-en);
    font-size: 0.95rem;
    font-style: italic;
    letter-spacing: 0.04em;
    color: var(--color-gray);
    margin-bottom: 0;
    line-height: 1.4;
}

.pricing-note {
    margin-top: 4rem;
}

.pricing-note-jp {
    font-family: var(--font-jp);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--color-gray);
    margin-bottom: 0.2rem;
}

.pricing-note-en {
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-style: italic;
    letter-spacing: 0.05em;
    color: var(--color-gold);
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .pricing-container {
        margin-top: 4rem;
        padding-top: 3rem;
    }
    
    .pricing-header {
        margin-bottom: 2.5rem;
    }
    
    .pricing-grid-title {
        font-size: 1.8rem;
    }
    
    .pricing-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }
    
    .pricing-card {
        width: 100%;
        padding: 2.5rem 1.5rem;
    }
    
    .pricing-note {
        margin-top: 3rem;
    }
}

/* --- Product Cards Grid Layout (2x2) --- */
.product-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto 5rem auto;
}

.product-cards-container .product-card {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Override product-details spacing in cards */
.product-cards-container .product-card .product-details {
    margin-top: auto;
    width: 100%;
}

/* Make sure last details item has no bottom border line */
.product-card .detail-row:last-child {
    border-bottom: none;
}

/* Description list row style overrides */
.product-card .desc-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    border-bottom: none;
}

.product-card .desc-text-jp {
    font-family: var(--font-jp);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.05em;
    color: var(--color-ink);
    margin-top: 0.2rem;
}

.product-card .desc-text-en {
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.4;
    letter-spacing: 0.03em;
    color: var(--color-gray);
    margin-top: 0.1rem;
}

/* Responsive updates for product cards grid */
@media (max-width: 768px) {
    .product-cards-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }
    
    .product-cards-container .product-card {
        max-width: 100%;
        width: 100%;
    }
}



