:root {
    /* Brand Colors derived from the Logo */
    --brand-yellow: #FFCD48; /* Warm mustard yellow */
    --brand-brown: #332115;  /* Dark brown for text */
    --bg-light: #FFFBF2;     /* Very light warm background */
    --white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Fredoka', sans-serif; /* Rounded, friendly vibe */
    --font-body: 'Nunito', sans-serif;     /* Clean, readable body */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--brand-brown);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* --- Typography utilities --- */
.text-center { text-align: center; }

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background-color: var(--brand-brown);
    color: var(--brand-yellow);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(51, 33, 21, 0.2);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--brand-yellow);
    color: var(--brand-brown);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--brand-brown);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--brand-brown);
    color: var(--brand-yellow);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--brand-brown);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--brand-brown);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--brand-brown);
    color: var(--bg-light);
}


/* --- Navbar --- */
.navbar {
    background-color: var(--brand-yellow);
    padding: 10px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    height: 80px;
}

.nav-links a {
    text-decoration: none;
    color: var(--brand-brown);
    font-weight: 600;
    margin: 0 15px;
    font-size: 1.1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--brand-brown);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}


/* --- Hero Section --- */
.hero {
    padding: 80px 5%;
    background-color: var(--bg-light);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--brand-brown);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #5C473A;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 30px;
    box-shadow: 20px 20px 0px rgba(51, 33, 21, 0.1);
    transform: rotate(3deg);
    object-fit: cover;
}

/* --- Fitur QR (Cerita) --- */
.feature-qr {
    background-color: var(--brand-yellow);
    padding: 80px 5%;
    border-top-left-radius: 80px;
    border-bottom-right-radius: 80px;
}

.feature-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.qr-mockup {
    background-color: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    text-align: center;
    transform: rotate(-3deg);
}

.qr-box img {
    border-radius: 10px;
}

.qr-mockup p {
    margin-top: 15px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-text p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* --- Menu Section --- */
.menu-section {
    padding: 100px 5%;
    background-color: var(--bg-light);
}

.menu-header {
    text-align: center;
    margin-bottom: 60px;
}

.menu-header h2 {
    font-size: 3rem;
}

.menu-header p {
    font-size: 1.2rem;
    color: #5C473A;
}

.menu-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.menu-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.menu-card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-yellow);
}

.menu-img-placeholder {
    font-size: 80px;
    margin-bottom: 20px;
}

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

.menu-card p {
    color: #5C473A;
    margin-bottom: 20px;
    font-size: 1rem;
}

.menu-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-yellow);
    text-shadow: 1px 1px 0px var(--brand-brown);
}

.menu-card .price-sm {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-yellow);
    text-shadow: 1px 1px 0px var(--brand-brown);
}

.menu-variants {
    text-align: left;
    margin-top: 15px;
    background-color: var(--bg-light);
    padding: 15px;
    border-radius: 12px;
    border: 1px dashed var(--brand-brown);
}

.menu-variants h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--brand-brown);
}

.menu-variants ul {
    list-style: none;
    padding: 0;
}

.menu-variants li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(51, 33, 21, 0.1);
    padding-bottom: 4px;
}

.menu-variants li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* --- Footer --- */
footer {
    background-color: var(--brand-brown);
    color: var(--bg-light);
    padding: 30px 5% 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-brand .footer-logo {
    height: 100px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--brand-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- Collection Grid --- */
.collection-section {
    padding: 80px 5%;
    background-color: var(--white);
}

.collection-header {
    text-align: center;
    margin-bottom: 50px;
}

.collection-header h2 {
    font-size: 3rem;
}

.collection-header p {
    font-size: 1.2rem;
    color: #5C473A;
}

/* Progress Bar */
.progress-wrapper {
    max-width: 700px;
    margin: 0 auto 50px auto;
    text-align: center;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

#progress-text {
    font-size: 1.1rem;
    color: var(--brand-brown);
    font-style: italic;
}

#progress-fraction {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-brown);
}

.progress-track {
    width: 100%;
    height: 16px;
    background-color: #EAE6DF;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid rgba(51, 33, 21, 0.1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-yellow), #e8a020);
    border-radius: 999px;
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 8px;
    right: 8px;
    height: 4px;
    background: rgba(255,255,255,0.4);
    border-radius: 999px;
}

.progress-hint {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #A89880;
    letter-spacing: 0.5px;
}

.collection-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1100px) {
    .collection-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .collection-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.story-slot {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 16px;
    text-align: left;
    text-decoration: none;
    transition: .35s;
    /* Resetting min-height as we don't need small/medium/large anymore */
    min-height: auto;
}

.slot-number {
    font-size: 1.5rem;
    line-height: 1;
    font-family: var(--font-heading);
    min-width: 32px;
    text-align: center;
}

.slot-title {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.3;
}

/* Locked State */
.story-slot.locked {
    background-color: #EAE6DF;
    color: #AFA8A0;
    cursor: not-allowed;
    border: 2px dashed #D2CCC4;
}

.story-slot.locked .icon {
    font-size: 1.3rem;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Unlocked State */
.story-slot.unlocked {
    background-color: var(--brand-yellow);
    color: var(--brand-brown);
    border: 2px solid var(--brand-brown);
    box-shadow: 4px 4px 0px rgba(51, 33, 21, 0.15);
}

.story-slot.unlocked:hover {
    transform: translateY(-5px);
    box-shadow: 4px 8px 0px rgba(51, 33, 21, 0.2);
}

/* Hamburger & Mobile Sidebar Style */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--brand-brown);
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(51, 33, 21, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1999;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background-color: var(--bg-light);
    border-left: 3px solid var(--brand-brown);
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 2000;
}

.mobile-sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-logo {
    height: 50px;
}

.close-sidebar-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--brand-brown);
    cursor: pointer;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-links a {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--brand-brown);
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-links a:hover, .sidebar-links a.active {
    border-bottom-color: var(--brand-yellow);
    padding-left: 5px;
}

.sidebar-footer-btn {
    margin-top: auto;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content, .feature-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-text h1 { font-size: 3rem; }
    .hero-buttons { justify-content: center; }
    .nav-links { display: none; }
    .navbar .btn-primary { display: none; } /* Hide raw CTA on mobile navbar to make space */
    .hamburger-btn { display: block; }
    .feature-qr { border-radius: 0; }
}
