@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   DESIGN TOKENS & VARIABLES (REVISED: Warm Food Industry)
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg-dark: #122116;     /* Deep Green Dark background */
    --color-bg-light: #FDFBF7;    /* Off-White Cream */
    
    --color-primary: #1A3A2A;     /* Dark Green (Natural, Herbs, Freshness) */
    --color-secondary: #8B0000;   /* Deep Red (Chili, Tomato, Rich Taste) */
    --color-accent: #C59B27;      /* Gold (Premium Heritage, Yogyakarta Nira) */
    --color-accent-hover: #AA821C;
    
    --color-text-dark: #222222;
    --color-text-light: #FDFBF7;
    --color-text-muted: #555555;
    --color-border: rgba(26, 58, 42, 0.1);
    --color-border-light: rgba(253, 251, 247, 0.15);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;

    /* Grid & Container */
    --container-max-width: 1280px;
    --header-height: 80px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

p {
    font-size: 1.05rem;
    color: var(--color-text-dark);
    opacity: 0.9;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

/* ==========================================================================
   LAYOUT COMPONENTS (HEADER & FOOTER)
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Navbar */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.site-header.scrolled {
    background-color: rgba(26, 58, 42, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    height: 70px;
}

.site-header.scrolled .nav-link {
    color: var(--color-text-light);
}

.site-header.scrolled .logo-text {
    color: var(--color-text-light);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    fill: var(--color-accent);
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
    transition: var(--transition-smooth);
}

.site-header.scrolled .logo-icon {
    fill: var(--color-accent);
}

.site-header.scrolled .logo-img {
    height: 42px;
}

.site-footer .logo-img {
    height: 60px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-light);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background-color: var(--color-secondary);
    color: var(--color-text-light) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: 1px solid var(--color-secondary);
}

.nav-cta:hover {
    background-color: transparent;
    color: var(--color-accent) !important;
    border-color: var(--color-accent);
}

.site-header.scrolled .nav-cta {
    background-color: var(--color-accent);
    color: var(--color-primary) !important;
    border-color: var(--color-accent);
}

.site-header.scrolled .nav-cta:hover {
    background-color: transparent;
    color: var(--color-accent) !important;
}

/* Mobile Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1010;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background-color: var(--color-text-light);
    transition: var(--transition-smooth);
}

.site-header.scrolled .hamburger span {
    background-color: var(--color-text-light);
}

/* Footer Section */
.site-footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--color-border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo-text {
    color: var(--color-text-light);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #A5B3AA;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #CCCCCC;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #CCCCCC;
}

.footer-contact-item svg {
    width: 20px;
    height: 20px;
    fill: var(--color-accent);
    flex-shrink: 0;
}

.footer-certifications {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
}

.footer-cert-badge {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--color-border-light);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #8E9F95;
}

/* ==========================================================================
   COMMON PREMIUM COMPONENTS & UTILITIES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    border: 1px solid var(--color-secondary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-secondary);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: 1px solid var(--color-accent);
}

.btn-accent:hover {
    background-color: transparent;
    color: var(--color-accent);
    transform: translateY(-2px);
}

.section-padding {
    padding: 7.5rem 0;
}

.section-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.section-dark h2, 
.section-dark h3,
.section-dark h4 {
    color: var(--color-text-light);
}

.section-dark p {
    color: #A5B3AA;
}

.text-center {
    text-align: center;
}

.subtitle {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: block;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 999;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
}

.custom-cursor-dot {
    width: 4px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
}

body:hover .custom-cursor,
body:hover .custom-cursor-dot {
    opacity: 1;
}

.hover-active .custom-cursor {
    width: 50px;
    height: 50px;
    background-color: rgba(197, 155, 39, 0.2);
    border-color: transparent;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 33, 22, 0.45), rgba(18, 33, 22, 0.9));
    z-index: 2;
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 3;
    max-width: 850px;
}

.hero h1 {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: #E2EAE5;
    margin-bottom: 2.5rem;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg-dark);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition-smooth);
        z-index: 1005;
        padding: 2rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        color: var(--color-text-light) !important;
        font-size: 1.5rem;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--color-text-light);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--color-text-light);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .custom-cursor, .custom-cursor-dot {
        display: none !important;
    }
}
