/* Global Reset & Variables */
:root {
    --primary-color: #8B0000;
    /* Deep Red */
    --primary-dark: #600000;
    --accent-color: #D4AF37;
    /* Metallic Gold */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F9F9F9;
    --white: #FFFFFF;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.service-track {
    display: flex;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    /* Critical for slider to work */
    box-sizing: border-box;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Utility */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-gold {
    color: var(--accent-color);
}

.section {
    padding: 100px 0 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.title-underline {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    margin: 0 15px 15px 0;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 10px 25px;
}

.btn-gold:hover {
    background-color: #B5952F;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-primary-nav {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: var(--white) !important;
    border-radius: 4px;
}

.btn-primary-nav:hover {
    background-color: var(--primary-dark);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('../assets/hero.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.accent-text {
    color: var(--accent-color);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    color: #e0e0e0;
}

/* About Section */
.about-section {
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-features li {
    margin-bottom: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-features i {
    color: var(--accent-color);
}

.rounded-shadow {
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

/* Brand Section (Ayam Prima) */
.brand-section {
    background-color: #FFF8E1;
    /* Light gold tint */
    overflow: hidden;
}

.brand-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.brand-image img {
    margin: 0 auto;
    max-height: 400px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.brand-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.icon-box {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.value-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.value-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Products and Audience */
/* Parallax & Sections */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: 100px 0;
}

.bg-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
}

/* Services Specific */
#services {
    background-image: url('../assets/bg-services.png');
    color: var(--white);
}

#services .section-title {
    color: var(--white);
}

#services .section-desc {
    color: #dedede;
}

#services .audience-list li {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#services-wrapper .audience-list li:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-10px);
}

#services .service-content strong {
    color: var(--accent-color);
}

#services .service-content p {
    color: #f0f0f0;
}

/* Product Grid Layout (Bento Style) */
.product-showcase {
    max-width: 1000px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .product-showcase {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 250px;
    }
}

.prod-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    group: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.prod-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* Feature Item (Whole Chicken) */
.prod-item.feature {
    grid-column: span 2;
    grid-row: span 2;
    /* Large square on desktop */
}

/* Wide Item (Super Chicken) */
.prod-item.wide {
    grid-column: span 1;
    grid-row: span 2;
    /* Vertical tall on desktop */
}

.prod-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.prod-item:hover .prod-bg {
    transform: scale(1.1);
}

.prod-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: var(--white);
    transform: translateY(10px);
    transition: transform 0.3s;
}

.prod-item:hover .prod-overlay {
    transform: translateY(0);
}

.prod-info h4 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.prod-info p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: #eee;
    opacity: 0.9;
}

/* Coming Soon Cards */
.prod-item.soon {
    background: #f8f8f8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px dashed #ddd;
}

.prod-item.soon .icon {
    font-size: 2rem;
    color: #ccc;
    margin-bottom: 10px;
}

.prod-item.soon span {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* Services Accordion UI */
.services-accordion {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
    margin-top: 40px;
}

@media (min-width: 992px) {
    .services-accordion {
        flex-direction: row;
        height: 500px;
        /* Fixed height for desktop accordion */
        gap: 0;
    }
}

.accordion-item {
    position: relative;
    flex: 1;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin: 0 10px;
    /* Spacing between items */
    min-height: 300px;
    /* For mobile */
}

@media (min-width: 992px) {
    .accordion-item {
        margin: 0;
        border-radius: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
        min-height: auto;
    }

    .accordion-item:first-child {
        border-radius: 20px 0 0 20px;
    }

    .accordion-item:last-child {
        border-radius: 0 20px 20px 0;
        border-right: none;
    }

    .accordion-item:hover {
        flex: 3;
        /* Expand active item */
    }
}

.accordion-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    transition: background 0.3s;
}

.accordion-item:hover .overlay {
    background: linear-gradient(to top, rgba(139, 0, 0, 0.9), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1));
    /* Red tint on hover */
}

.acc-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    color: var(--white);
    z-index: 2;
}

.acc-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.acc-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.acc-header h3 {
    font-size: 1.5rem;
    margin: 0;
    white-space: nowrap;
}

.acc-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    transform: translateY(20px);
}

.accordion-item:hover .acc-body {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
}

/* Mobile: Always show body roughly or on click */
@media (max-width: 991px) {
    .acc-body {
        max-height: 200px;
        /* Always visible on mobile stacked */
        opacity: 1;
        transform: translateY(0);
        margin-top: 10px;
    }

    .accordion-item {
        border: 2px solid rgba(255, 255, 255, 0.1);
    }
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.8rem;
    margin-top: 15px;
}

/* Page Header */
.page-header {
    background-image: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    color: var(--white);
}

.page-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Section */
.contact-section {
    background-image: linear-gradient(to right, #1a1a1a, #2d2d2d);
    color: var(--white);
}

.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: rgba(255, 255, 255, 0.05);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-title {
    color: var(--white);
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    color: var(--text-dark);
    position: relative;
}

.contact-form h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
}

.full-width {
    width: 100%;
}

/* Form Loading Overlay */
.form-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.form-loading-overlay.active {
    display: flex;
}

.form-loading-overlay .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.form-loading-overlay p {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background-color: #000;
    color: #888;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand h4 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.footer-links a {
    margin: 0 15px;
    color: #888;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-social a {
    margin-left: 15px;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .about-grid,
    .brand-wrapper,
    .split-layout,
    .contact-box {
        grid-template-columns: 1fr;
    }

    .brand-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Add JS toggle later */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hamburger {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--primary-color);
        position: relative;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: var(--primary-color);
        left: 0;
    }

    .hamburger::before {
        top: -8px;
    }

    .hamburger::after {
        bottom: -8px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }
}