/* projects/custard_land.css */

/* Fonts will be inherited from main styles.css via HTML import */

/* Color Palette - Custard Land Theme */
:root {
    --custard-bg: #FFFDF5;
    /* Creamy background */
    --custard-yellow: #FFCF40;
    /* Yellow accent */
    --custard-brown: #5D4037;
    /* Brown text/accent */
    --custard-text: #3E2723;
    /* Darker brown for text */
}

body {
    background-color: var(--custard-bg);
    color: var(--custard-text);
    font-family: 'SUIT Variable', sans-serif;
    overflow-x: hidden;
    /* Prevent horizontal scroll from breakout sections */
}

/* Page Container */
.custard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 100px;
    /* Bottom padding for footer spacing */
}

/* Intro Section */
.intro-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    text-align: center;
    padding: 100px 20px;
    /* Increased padding for better visibility */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('../asset_custard/custard_intro.png?v=2');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    /* Switch text to white for contrast */
    margin-bottom: 120px;
}

.intro-logo {
    max-width: 300px;
    width: 80%;
    margin-bottom: 20px;
}

.intro-title {
    font-family: 'Lexend Giga', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    /* White text */
}

.intro-quote {
    font-family: 'SUIT Variable', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--custard-yellow);
    /* Keep yellow accent */
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
    word-break: keep-all;
    color: #f0f0f0;
    /* Light gray for readability */
}

.intro-text p {
    margin-bottom: 1.5rem;
}

/* Character Section */
.character-section {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-bottom: 100px;
}

.character-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Alternate layout for visual interest (Left-Right swap) - Not requested but good for design */
/* For now sticking to requested Left Asset, Right Text */

.char-asset {
    flex: 1;
    display: flex;
    justify-content: center;
}

.char-asset img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    /* Limit height */
    object-fit: contain;
    /* filter: drop-shadow(0 10px 20px rgba(93, 64, 55, 0.15)); REMOVED per user request */
    border-radius: 20px;
    /* Added per user request */
}

/* Wrapper for side-by-side assets on desktop */
.asset-media-row {
    display: flex;
    gap: 20px;
}

/* Higher specificity to override .asset-media img */
.asset-media.asset-media-row img {
    /* Use flex-grow proportional to aspect ratio to maintain equal height */
    /* AR1 = 1.413, AR2 = 0.675 */
    /* flex: <grow> <shrink> <basis> */
    flex: 1 1 0%;
    min-width: 0;
    /* Allow shrinking below min-content */
    height: auto;
    object-fit: cover;
    border-radius: 0;
}

.asset-media.asset-media-row img:first-child {
    flex-grow: 1.4133;
}

.asset-media.asset-media-row img:last-child {
    flex-grow: 0.6747;
}

@media (max-width: 768px) {
    .asset-media-row {
        flex-direction: column;
    }

    .asset-media-row img {
        width: 100%;
        margin-bottom: 0;
        /* Let gap handle spacing */
        flex: none;
        /* Reset flex properties */
    }

    .asset-media-row img:last-child {
        margin-bottom: 0;
    }
}

.char-text {
    flex: 1;
    text-align: left;
}

.char-role {
    font-size: 0.9rem;
    color: var(--custard-yellow);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.char-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--custard-brown);
}

.char-quote {
    font-size: 1.1rem;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--custard-text);
    background-color: rgba(255, 207, 64, 0.2);
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
}

.char-details {
    font-size: 1rem;
    line-height: 1.6;
}

.char-details p {
    margin-bottom: 10px;
}

.char-details strong {
    color: var(--custard-brown);
}

/* Teamwork Section */
.teamwork-section {
    text-align: center;
    padding: 40px 0 40px;
    /* Reduced top padding from 80px */
    background-color: var(--custard-bg);
    /* Same as body */
    margin-bottom: 100px;
    border-top: 2px dashed rgba(93, 64, 55, 0.1);
    border-bottom: 2px dashed rgba(93, 64, 55, 0.1);
}

.teamwork-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 40px;
    color: var(--custard-brown);
}

.teamwork-content {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 2;
    color: var(--custard-text);
}

.teamwork-content p {
    margin-bottom: 10px;
}

/* Asset Showcase Section */
.asset-showcase-section {
    display: flex;
    flex-direction: column;
    gap: 120px;
    margin-bottom: 100px;
}

.asset-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.asset-media {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.asset-media img {
    width: 100%;
    height: auto;
    display: block;
}

.asset-info {
    max-width: 800px;
    margin: 0 auto;
    /* Center text */
    text-align: left;
}

.asset-title {
    font-family: 'Lexend Giga', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--custard-brown);
    margin-bottom: 15px;
    border-left: 4px solid var(--custard-yellow);
    padding-left: 15px;
}

.asset-desc {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.design-point {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 20px;
    border-radius: 12px;
}

.design-point h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--custard-brown);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.design-point ul {
    list-style: none;
    padding: 0;
}

.design-point li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.design-point li strong {
    color: var(--custard-brown);
    font-weight: 600;
}


/* Responsive */
@media (max-width: 768px) {
    .character-row {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .char-text {
        text-align: left;
    }

    .char-asset img {
        max-height: 300px;
        margin: 0 auto;
        /* Center image */
    }

    /* Mobile Text Sizing Adjustments */
    .intro-title {
        font-size: 1rem;
    }

    .intro-quote {
        font-size: 1.1rem;
    }

    .intro-text {
        font-size: 0.95rem;
    }

    .char-role {
        font-size: 0.8rem;
    }

    .char-name {
        font-size: 1.5rem;
    }

    .char-quote {
        font-size: 0.95rem;
    }

    .char-details {
        font-size: 0.9rem;
    }

    .teamwork-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .teamwork-content {
        font-size: 1rem;
        line-height: 1.8;
    }

    .asset-title {
        font-size: 1rem;
    }

    .asset-desc {
        font-size: 0.9rem;
    }

    .design-point {
        padding: 15px;
    }

    .design-point h4 {
        font-size: 0.85rem;
    }

    .design-point li {
        font-size: 0.9rem;
    }
}

/* Stand/Sit Interaction Section */
.stand-sit-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0 0;
    /* Top padding 20px, Bottom 0 */
    margin-bottom: 0;
    /* Removed margin */
}

.stand-sit-container {
    position: relative;
    width: 800px;
    /* Increased from 600px */
    max-width: 100%;
    /* Responsive */
    height: auto;
    aspect-ratio: 2096 / 1164;
    /* Updated based on actual image dimensions */
    cursor: pointer;
}

.stand-sit-img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.stand-sit-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* Show hover image */
.stand-sit-container:hover .stand-sit-img:not(.stand-sit-hover),
.stand-sit-container:active .stand-sit-img:not(.stand-sit-hover),
.stand-sit-container.is-sitting .stand-sit-img:not(.stand-sit-hover) {
    opacity: 0;
}

.stand-sit-container:hover .stand-sit-hover,
.stand-sit-container:active .stand-sit-hover,
.stand-sit-container.is-sitting .stand-sit-hover {
    opacity: 1;
}

/* Mobile Tap Hint */
.mobile-tap-hint {
    display: none;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: #888;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 12px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
}

@media (max-width: 768px) {
    .mobile-tap-hint {
        display: block;
    }
}


/* Hide header in preview mode */
body.preview-mode .nav {
    display: none !important;
}

body.preview-mode {
    padding-top: 0;
}

/* Marquee Section */
.marquee-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    background-color: var(--custard-bg);
    padding: 30px 0;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.marquee-track {
    display: flex;
    /* Gap is not used here, we use negative margin on items */
    width: max-content;
    animation: marquee-scroll 20s linear infinite;
    padding-left: 0;
    -webkit-transform: translateZ(0);
    /* Hardware acceleration for Safari */
    transform: translateZ(0);
}

.marquee-track img {
    height: 120px;
    /* Larger size */
    width: auto;
    object-fit: contain;
    margin-right: -40px;
    /* Negative gap to make them overlap */
    -webkit-transform: translateZ(0);
    /* Hardware acceleration for Safari */
    transform: translateZ(0);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move half the length if we duplicated sets enough */
    }
}

/* Menu Carousel Section */
.menu-carousel-section {
    padding: 60px 40px;
    background-color: var(--custard-bg);
    text-align: center;
    /* Center the titles */
}

.menu-carousel-section .intro-title {
    color: var(--custard-brown);
    /* Override white global color */
}

.menu-subtitle {
    font-size: 0.9rem;
    color: #888;
    margin-top: -10px;
    margin-bottom: 60px;
    font-weight: 500;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 40px;
    /* Space for arrows */
}

.carousel-track-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    list-style: none;
    padding: 0;
    margin: 0;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    /* Nuclear fix for width explosion */
    box-sizing: border-box;
    flex-shrink: 0;
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    /* Critical for wrapping */
    box-sizing: border-box;
    overflow: hidden;
    overflow-wrap: break-word;
}

.menu-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    /* Prevent squashing */
}

.menu-img img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
}

.menu-content {
    flex: 1;
    text-align: left;
    padding-right: 20px;
    min-width: 0;
    /* Critical for flex child to wrap text */
    max-width: 100%;
    overflow-wrap: break-word;
}

.menu-tag {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--custard-yellow);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.menu-title {
    font-size: 2rem;
    color: var(--custard-brown);
    margin: 0 0 15px;
    font-family: 'Outfit', sans-serif;
}

.menu-headline {
    font-size: 1.2rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 15px;
    font-style: italic;
}

.menu-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.menu-keywords {
    font-size: 0.9rem;
    color: var(--custard-yellow);
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.menu-keywords {
    font-size: 0.9rem;
    color: var(--custard-yellow);
    font-weight: 600;
}

/* Carousel Buttons */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 3rem;
    color: var(--custard-brown);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
    color: var(--custard-yellow);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* Carousel Nav */
.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-indicator.current-slide {
    background-color: var(--custard-yellow);
}

/* Responsive */
@media (max-width: 768px) {
    .intro-section {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('../asset_custard/custard_intro_mobile.png?v=1');
        background-size: cover;
        background-position: center;
    }

    .menu-carousel-section {
        padding: 40px 20px;
    }

    .carousel-container {
        padding: 0;
        /* Removing arrow space for mobile? Or keep arrows small */
    }

    .menu-item {
        flex-direction: column;
        padding: 20px;
        text-align: center;
        gap: 20px;
    }

    .menu-content {
        padding-right: 0;
        text-align: left;
        /* Keep text left aligned or center? User usually prefers readable text */
    }

    .menu-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .menu-headline {
        font-size: 1rem;
    }

    .menu-desc {
        font-size: 0.9rem;
    }

    .menu-keywords {
        font-size: 0.8rem;
    }

    .hamburger-icon {
        display: block !important;
        position: relative;
        z-index: 9999 !important;
        width: 44px !important;
        /* Larger hit area for mobile */
        height: 44px !important;
        background-size: 24px 24px !important;
        /* Keep icon size same but hit area larger */
        background-position: center !important;
        cursor: pointer !important;
    }

    .carousel-prev,
    .carousel-next {
        display: none;
        /* Hide arrows on mobile, rely on swipe or dots */
    }

    .carousel-nav {
        margin-top: 10px !important;
        /* Reduced from 20px */
    }
}