/*
Theme Name: Sulawesi Food Hub
Theme URI: http://localhost/sulawesi-food-hub
Author: AI Assistant
Description: Custom WordPress theme for Sulawesi Food Hub based on specific DESAIN.md guidelines.
Version: 1.0.0
Text Domain: sulawesifoodhub
*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --dark-green: #1F5D2E;
    --primary-green: #2E7D32;
    --primary-green-hover: #2E7D32;
    --light-green: #EDF7ED;
    --accent-orange: #F57C00;
    --soft-orange: #FFF3E8;
    --bg-cream: #fdfaf4;
    --bg-white: #FFFFFF;
    --section-bg: #F8F8F8;
    --text-dark: #202124;
    --text-muted: #666666;
    --border-color: #EAEAEA;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 88px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 40px;
}

.logo-text {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    color: var(--primary-green);
}

.logo-text span {
    color: var(--accent-orange);
    display: block;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-green);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-green);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--dark-green);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-green);
    transform: translateY(-2px);
}

.btn-login {
    padding: 10px 24px;
}

/* Hero Sections (Shared Style) */
.hero-banner {
    background: linear-gradient(to right, #fffdf8 0%, #fffdf8 50%, white 50%, white 100%);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-content h4 {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 8px;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    color: var(--dark-green);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-content h1 .highlight {
    color: var(--accent-orange);
}

.hero-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 90%;
    line-height: 1.8;
}

.hero-image-container {
    position: relative;
}

.hero-image {
    width: 100%;
    border-radius: var(--border-radius-lg);
    /* box-shadow: 0 20px 40px rgba(0,0,0,0.1); */
}

/* Categories (Beranda) */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    display: inline-block;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--primary-green);
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.section-header-flex h2 {
    font-size: 24px;
    font-weight: 700;
}

.link-arrow {
    color: var(--primary-green);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.category-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 60px 0;
}

.category-card {
    background-color: var(--bg-white);
    padding: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
/* Revert background overrides because DESAIN.md requests white backgrounds for all cards */
.category-card:nth-child(2), .category-card:nth-child(4) { background-color: var(--bg-white); }
.category-card:nth-child(3) { background-color: var(--bg-white); }

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}
.icon-box-1, .icon-box-3 { background-color: var(--light-green); color: var(--dark-green); }
.icon-box-2, .icon-box-4 { background-color: var(--soft-orange); color: var(--accent-orange); }

.category-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}
.category-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.category-info i {
    font-size: 14px;
}
.category-card:nth-child(1) .category-info i, .category-card:nth-child(3) .category-info i {
    color: var(--primary-green);
}
.category-card:nth-child(2) .category-info i, .category-card:nth-child(4) .category-info i {
    color: var(--accent-orange);
}

/* Kuliner Cards */
.kuliner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.kuliner-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.kuliner-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: var(--transition);
    cursor: pointer;
}

.kuliner-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transform: translateY(-6px);
}

.kuliner-img-container {
    height: 200px;
    overflow: hidden;
}

.kuliner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.kuliner-card:hover .kuliner-img {
    transform: scale(1.05);
}

.kuliner-info {
    padding: 20px;
}

.kuliner-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.kuliner-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.kuliner-location {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.kuliner-location i {
    color: var(--primary-green);
}

/* About Page Specifics */
.about-features {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    padding: 60px 0;
}
.about-features-text h2 {
    font-size: 24px;
    margin-bottom: 16px;
}
.about-features-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-item {
    text-align: left;
}
.feature-item .icon {
    font-size: 32px;
    color: var(--primary-green);
    margin-bottom: 16px;
}
.feature-item h4 {
    font-size: 16px;
    margin-bottom: 8px;
}
.feature-item p {
    font-size: 13px;
    color: var(--text-muted);
}

.stats-banner {
    background-color: var(--bg-cream);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    display: flex;
    justify-content: space-around;
    margin-bottom: 80px;
}
.stat-box {
    display: flex;
    align-items: center;
    gap: 16px;
}
.stat-box i {
    font-size: 40px;
    color: var(--primary-green);
}
.stat-info h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-info p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Kuliner Page specific (Filters) */
.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}
.filter-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.filter-pill {
    padding: 10px 20px;
    border-radius: 30px;
    background-color: #f5f5f5;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}
.filter-pill.active, .filter-pill:hover {
    background-color: var(--primary-green);
    color: white;
}
.search-wrapper {
    position: relative;
    width: 250px;
}
.search-wrapper input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-family: inherit;
    font-size: 14px;
}
.search-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0 80px;
}
.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.page-btn.active {
    background-color: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

/* Contact & Saran Forms */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    padding: 60px 0 100px;
}
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.contact-item:last-child {
    border-bottom: none;
}
.contact-icon {
    width: 48px;
    height: 48px;
    background-color: #f5f8f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 20px;
    flex-shrink: 0;
}
.contact-item h5 {
    font-size: 16px;
    margin-bottom: 4px;
}
.contact-item p {
    color: var(--text-muted);
    font-size: 14px;
}

.form-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 40px;
}
.form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}
.form-header i {
    font-size: 24px;
    color: var(--primary-green);
}
.form-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.form-group {
    margin-bottom: 24px;
}
.form-group.full {
    grid-column: 1 / -1;
}
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
.form-label span {
    color: red;
}
.form-control {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
}
textarea.form-control {
    height: 120px;
    resize: vertical;
}

.file-upload-box {
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.file-upload-box input[type="file"] {
    display: none;
}
.file-upload-btn {
    background: #f5f5f5;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}
.file-text {
    font-size: 13px;
    color: var(--text-muted);
}
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}
.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}
.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border-radius: 8px;
}

/* Footer */
footer {
    background-color: var(--dark-green);
    color: white;
    padding: 60px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}
.footer-logo-text {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
}
.footer-logo-text span {
    color: var(--accent-orange);
    display: block;
}
.footer-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}
.social-icons a:hover {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
}

.footer-col h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
}
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-col a {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}
.footer-col a:hover {
    color: var(--accent-orange);
}

.newsletter p {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 16px;
}
.newsletter-form {
    display: flex;
}
.newsletter-form input {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: none;
    border-radius: 12px 0 0 12px;
    font-family: inherit;
}
.newsletter-form button {
    background-color: var(--accent-orange);
    color: white;
    border: none;
    padding: 0 16px;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}
.footer-bottom-links {
    display: flex;
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-grid, .about-features, .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .hero-banner {
        padding: 40px 0;
    }
    .category-row, .kuliner-grid, .kuliner-grid-3, .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-banner {
        flex-wrap: wrap;
        gap: 20px;
    }
    .stat-box {
        width: 45%;
    }
    .hero-content h1 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .category-row, .kuliner-grid, .kuliner-grid-3, .features-grid, .form-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .stat-box {
        width: 100%;
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .contact-layout {
        padding: 40px 0;
    }
    .form-card {
        padding: 20px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Burger Menu CSS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.burger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-green);
    cursor: pointer;
    padding: 8px;
}
@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 88px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        gap: 20px;
        border-top: 1px solid var(--border-color);
        text-align: center;
        z-index: 9999;
    }
    .nav-links.show-mobile {
        display: flex !important;
    }
    .nav-links a {
        font-size: 16px;
        padding: 10px 0;
    }
}

/* Mobile Hero Fix */
@media (max-width: 768px) {
    .about-hero {
        display: flex;
        flex-direction: column;
    }
    .about-hero > .container {
        width: 100%;
        padding: 40px 20px;
    }
    .about-hero .about-hero-text {
        width: 100% !important;
        padding: 20px 0 !important;
        text-align: center;
    }
    .about-hero .about-hero-text h1 {
        font-size: 36px !important;
    }
    .about-hero .about-hero-text p {
        max-width: 100% !important;
        font-size: 15px !important;
    }
    .about-hero .about-hero-image-wrapper {
        position: relative !important;
        width: 100% !important;
        height: 300px !important;
        order: -1;
    }
    .about-hero .about-hero-image-wrapper img {
        border-radius: 0 0 50% 50% / 0 0 20% 20% !important;
    }
}

/* Safe Mobile Menu Fix */
@media (max-width: 768px) {
    header {
        height: auto !important;
        min-height: 88px;
    }
    .navbar {
        flex-wrap: wrap;
    }
    .nav-links {
        position: static !important;
        width: 100%;
        margin-top: 10px;
        order: 3;
    }
    .header-actions {
        order: 2;
    }
    .logo {
        order: 1;
    }
}
