/* --- CSS Reset & Variables --- */
:root {
    --brand-red: #D92E34;
    --brand-yellow: #F7C02B;
    --dark-text: #1a1a1a;
    --body-text: #4c4c4c;
    --bg-cream: #FFFBF2;
    --bg-mint: #E6F4F1;
    --bg-peach: #FFEAE3;
    --bg-yellow-light: #FFF8E1;
    --stroke-color: #E6E6E6;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Figtree', sans-serif;
    --transition-smooth: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--body-text);
    background-color: var(--bg-cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- General Components --- */
.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2.25rem, 5vw, 3rem); /* Responsive font size */
    color: var(--dark-text);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.cta-button.primary {
    background-color: #e6383e;

    color: white;
}
.cta-button.primary:hover {
    background-color: #cc262b;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(217, 46, 52, 0.2);
}
.cta-button.primary.large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}


.cta-button.secondary {
    background-color: transparent;
    color: var(--dark-text);
    border-color: var(--stroke-color);
}
.cta-button.secondary:hover {
    border-color: var(--dark-text);
    color: var(--dark-text);
    transform: translateY(-3px);
}

.cta-button.full-width {
    width: 100%;
    max-width: 300px;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-mint);
    color: var(--brand-red);
    margin-bottom: 1rem;
}
.icon-wrapper svg {
    width: 28px;
    height: 28px;
}

/* --- Header --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    transition: all 0.3s ease-out;
    background-color: var(--brand-red);
}

.main-header.scrolled {
    background-color: rgba(255, 251, 242, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo img {
    height: 50px;
}
.main-nav {
    display: flex;
    gap: 2.5rem;
}



.main-nav a {
    text-decoration: none;
    font-weight: 600;
    color: white;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    transition: color 0.3s ease;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}
.main-nav a:hover::after {
    width: 100%;
}


.main-header.scrolled .main-nav a {
    color: var(--dark-text);
    text-shadow: none;
}
.main-header.scrolled .main-nav a::after {
    background-color: var(--brand-red);
}

.mobile-nav-toggle { display: none; }
.header-cta {
    display: inline-flex;
}


/* --- Hero Section --- */
.hero-section {
    background: radial-gradient(circle, #e74b51 0%, #a52327 100%);
    padding: 10rem 0 6rem 0;
    overflow: hidden;
    position: relative;
}
.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}
.hero-text .hero-title,
.hero-text .hero-subtitle {
    color: #FFFFFF;
}
.hero-subtitle{
    margin-bottom: 4%;
}
.hero-text .tagline {
    font-weight: 600;
    color: var(--brand-yellow);
    margin-bottom: 1rem;
    font-size: 1.2em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.hero-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 3.5em;
    letter-spacing: -1px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.highlight-splash {
    color: var(--brand-yellow);
    position: relative;
    display: inline-block;
}
.hero-actions .secondary {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.5);
}
.hero-actions .secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
}
.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}
.blob-shape {
    position: absolute;
    border-radius: 41% 59% 45% 55% / 53% 52% 48% 47%;
    animation: morph 15s linear infinite alternate;
    z-index: -2;
    mix-blend-mode: screen;
    opacity: 0.15;
}
.hero-blob-1 {
    width: 90%;
    height: 90%;
    background-color: var(--bg-peach);
}
.hero-blob-2 {
    width: 70%;
    height: 70%;
    background-color: var(--bg-yellow-light);
    animation-direction: reverse;
    opacity: 0.2;
}
.hero-image-ring-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-image-ring-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247, 192, 43, 0.3) 0%, rgba(247, 192, 43, 0) 60%);
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}
.hero-image-ring {
    position: absolute;
    width: 120%;
    height: 120%;
    border: 2px dashed var(--brand-yellow);
    border-radius: 50%;
    animation: spin 40s linear infinite;
    z-index: 1;
}
.hero-product-image {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 2;
    border-radius: 50%;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}
.hero-deco {
    position: absolute;
    z-index: 3;
    display: block;
}
.strawberry { width: 120px; top: 10%; left: 0; }
.mango { width: 150px; top: 20%; right: -5%; }
.leaf-1 { width: 80px; bottom: 15%; left: 5%; }
.leaf-2 { width: 60px; bottom: 25%; right: 10%; }


/* --- Story Section (About) --- */
.story-section {
    padding: 6rem 0;
    overflow: hidden;
}
.story-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}
.story-image-wrapper {
    position: relative;
}
.story-image {
    width: 100%;
    border-radius: 24px;
}
.story-image-card {
    position: absolute;
    bottom: -40px;
    right: -40px;
    background-color: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    width: 250px;
}
.story-image-card h4 {
    font-family: var(--font-heading);
    color: var(--dark-text);
    font-size: 1.125rem;
}

/* --- Product Section --- */
.product-section {
    padding: 6rem 0;
    background-color: var(--bg-mint);
    overflow: hidden;
}
.product-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.product-card {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    padding: 2rem;
    transition: var(--transition-smooth);
    background-color: white;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    transition: left 0.8s ease;
}
.product-card:hover::before {
    left: 150%;
}
.product-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.product-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}
.bg-leci { background-color: var(--bg-peach); }
.bg-stick { background-color: var(--bg-yellow-light); }
.bg-greek { background-color: #E3F2FF; }

.product-card-image {
    width: 80%;
    margin: 0 auto 1.5rem auto;
    display: block;
    transition: transform 0.5s ease;
}
.product-card:hover .product-card-image {
    transform: scale(1.1) rotate(3deg);
}
.product-card-content {
    text-align: center;
}
.product-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}
.product-footer {
    text-align: center;
    margin-top: 4rem;
}


/* --- Blog Section --- */
.blog-section {
    padding: 6rem 0;
    background-color: var(--bg-cream);
}
.blog-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}
.slider-wrapper {
    position: relative;
}
.blog-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1.5rem; /* Ruang untuk shadow */
    scrollbar-width: none; /* Firefox */
}
.blog-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.blog-card {
    flex: 0 0 30%;
    min-width: 300px;
    scroll-snap-align: start;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}
.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}
.blog-card-content {
    padding: 1.5rem;
}
.blog-card-category {
    display: inline-block;
    background-color: var(--bg-peach);
    color: var(--brand-red);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.blog-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--dark-text);
    line-height: 1.4;
    margin-bottom: 1rem;
}
.read-more {
    font-weight: 600;
    color: var(--brand-red);
}
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--stroke-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-size: 1.5rem;
    color: var(--dark-text);
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
}
.slider-nav:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
}
.slider-nav.prev {
    left: -25px;
}
.slider-nav.next {
    right: -25px;
}

/* --- Benefits Section --- */
.benefits-section {
    padding: 6rem 0;
    overflow: hidden;
}
.benefits-container {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    align-items: center;
    gap: 4rem;
}
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.benefit-item h4 {
    font-family: var(--font-heading);
    color: var(--dark-text);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

/* --- Pre-Footer CTA --- */
.pre-footer-cta {
    background-color: var(--bg-peach);
    padding: 6rem 0;
    text-align: center;
}
.cta-container h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--dark-text);
    margin-bottom: 1rem;
}
.cta-container p {
    max-width: 500px;
    margin: 0 auto 2rem auto;
}

/* --- Footer --- */
.main-footer {
    padding: 6rem 0 2rem 0;
    background-color: var(--dark-text);
    color: rgba(255,255,255,0.7);
}
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}
.footer-logo {
    height: 70px;
    margin-bottom: 1rem;
    
}
.footer-links h4, .footer-contact h4 {
    font-family: var(--font-heading);
    color: white;
    margin-bottom: 1.5rem;
}
.footer-links a, .footer-contact a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}
.footer-links a:hover, .footer-contact a:hover {
    color: white;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}
.footer-social {
    display: flex;
    gap: 1rem;
}
.footer-social a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}
.footer-social a:hover {
    color: white;
}

/* --- Animations --- */
@keyframes morph {
    0% { border-radius: 41% 59% 45% 55% / 53% 52% 48% 47%; transform: rotate(0deg); }
    100% { border-radius: 61% 39% 59% 41% / 43% 45% 55% 57%; transform: rotate(360deg); }
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    70% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .main-nav, .header-cta { display: none; }
    .mobile-nav-toggle { display: flex; flex-direction: column; gap: 6px; background: none; border: none; width: 24px; cursor: pointer; }
    .mobile-nav-toggle span { display: block; height: 2px; background-color: white; width: 100%; transition: all 0.3s ease; }
    .main-header.scrolled .mobile-nav-toggle span { background-color: var(--dark-text); }
    
    .hero-container, .story-container, .benefits-container { grid-template-columns: 1fr; }
    .hero-image-container { grid-row: 1; margin-bottom: 3rem; }
    .hero-text, .story-text, .benefits-text, .blog-header { text-align: center; }
    .hero-subtitle, .product-header p { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .story-image-card { right: 20px; bottom: -20px; }
    .footer-main { grid-template-columns: 1fr; }
    .slider-nav { display: none; }
}

@media (max-width: 768px) {
    .hero-deco { display: none; }
    .story-image-card {
        position: relative;
        width: 100%;
        right: 0;
        bottom: 0;
        margin-top: 1.5rem;
    }
    .benefits-container {
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }
    .blog-card {
        flex-basis: 80%;
        min-width: 280px;
    }
}


/* --- Partnership Page Specifics --- */

.mitra-hero-section {
    background-color: var(--bg-cream);
    padding: 10rem 0 6rem 0;
}

.mitra-hero-section .hero-subtitle {
    color: var(--body-text); /* Override white color from main hero */
}

.mitra-hero-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}
.mitra-hero-image-container img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    object-fit: cover;
    max-height: 450px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.mitra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch; /* Make cards same height */
}
.mitra-card {
    background-color: white;
    border: 2px solid var(--stroke-color);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.mitra-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.mitra-card.featured {
    border-color: var(--brand-red);
    transform: scale(1.05);
    position: relative;
    box-shadow: 0 20px 40px rgba(217, 46, 52, 0.15);
}
.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--brand-red);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}
.mitra-card h3 {
    font-family: var(--font-heading);
    color: var(--dark-text);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.mitra-card-desc {
    margin-bottom: 2rem;
    flex-grow: 1; /* Pushes button to bottom */
}
.mitra-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2.5rem;
    padding-left: 1rem;
    flex-grow: 1; /* Pushes button to bottom */
}
.mitra-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.mitra-features svg {
    color: var(--brand-red);
    flex-shrink: 0;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 3rem;
}
.step-item {
    text-align: center;
    max-width: 200px;
}
.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-mint);
    color: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem auto;
    border: 3px solid var(--stroke-color);
}
.step-item h4 {
    font-family: var(--font-heading);
    color: var(--dark-text);
    font-size: 1.25rem;
}
.step-arrow {
    font-size: 2.5rem;
    color: var(--stroke-color);
    margin-top: 10px;
}

/* Mitra Form */
.mitra-form {
    max-width: 800px;
    margin: 2rem auto 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: left;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-full-width {
    grid-column: 1 / -1;
}
.mitra-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}
.mitra-form input,
.mitra-form select,
.mitra-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--stroke-color);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.mitra-form input:focus,
.mitra-form select:focus,
.mitra-form textarea:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(217, 46, 52, 0.1);
}
.mitra-form .cta-button {
    max-width: none;
    margin-top: 1rem;
}

/* Responsive adjustments for Partnership page */
@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .mitra-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
     .mitra-card.featured {
        transform: scale(1); /* Disable zoom effect on mobile */
    }
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    .step-arrow {
        transform: rotate(90deg);
        margin: -1rem 0;
    }
}

@media (max-width: 768px) {
    .mitra-hero-section {
        padding: 8rem 0 4rem 0;
        text-align: center;
    }
    .mitra-hero-image-container {
        grid-row: 1;
        margin-bottom: 3rem;
    }
    .mitra-form {
        grid-template-columns: 1fr;
    }
}