/* ===================================
   SANYI FOODS GROUP - ENHANCED CORPORATE WEBSITE
   Brand Colors: Red #C8102E, Green #00843D
   =================================== */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #C8102E;
    --primary-green: #00843D;
    --dark-black: #1A1A1A;
    --text-gray: #4A4A4A;
    --light-gray: #F8F8F8;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-gray);
    background: var(--white);
    overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-black);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-green);
}

/* === LAYOUT === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
}

.header-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-green));
    margin: 0 auto;
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: var(--dark-black);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-red);
}

.btn-contact {
    background: var(--primary-red);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-contact:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.25rem 0.5rem;
}

.lang-btn:hover {
    color: var(--primary-red);
}

.lang-btn.active {
    color: var(--primary-red);
    font-weight: 600;
}

.lang-separator {
    color: var(--border-color);
    user-select: none;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: var(--white);
}

/* Left side - Text content */
.hero-text-side {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4rem 3rem 4rem 6rem;
    background: var(--white);
    z-index: 2;
}

.hero-content-left {
    max-width: 550px;
    width: 100%;
}

/* Logo moved to About section */

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-black);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    animation: fadeInUp 1s ease 0.4s both;
}

/* Right side - Image */
.hero-image-side {
    flex: 0 0 55%;
    position: relative;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Hero Badges */
.hero-badges {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    animation: fadeInUp 1s ease 0.6s both;
    flex-wrap: nowrap;
}

.hero-badge {
    padding: 0.5rem 1rem;
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--dark-black);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: var(--transition);
    white-space: nowrap;
}

.hero-badge:hover {
    background: var(--white);
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-badge-separator {
    color: var(--primary-red);
    font-size: 1rem;
    user-select: none;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 1s ease 0.8s both;
}

.scroll-arrow {
    display: block;
    width: 30px;
    height: 50px;
    position: relative;
}

.scroll-arrow span {
    display: block;
    width: 16px;
    height: 16px;
    border-bottom: 2px solid var(--white);
    border-right: 2px solid var(--white);
    transform: rotate(45deg);
    margin: -8px;
    animation: scrollAnimation 2s infinite;
}

.scroll-arrow span:nth-child(2) {
    animation-delay: -0.2s;
}

.scroll-arrow span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes scrollAnimation {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-10px, -10px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(10px, 10px);
    }
}

/* === ABOUT SECTION === */
.about {
    background: var(--white);
    padding: 3rem 0 6rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-text .lead-paragraph {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--dark-black);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.about-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.about-image img {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 8px;
    transition: var(--transition);
}

.about-image img:hover {
    transform: translateY(-5px);
}

/* === SERVICES SECTION === */
.services {
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-red);
}

.service-icon {
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--dark-black);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

/* === PRODUCTS SECTION === */
.products {
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-category {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.product-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.category-image {
    width: 100%;
    height: 230px;
    background-size: 100% auto;
    background-position: center;
    background-color: #f0f0f0;
    background-repeat: no-repeat;
}

.category-content {
    padding: 2rem 1.5rem;
    text-align: center;
}

.category-content h3 {
    color: var(--dark-black);
    margin-bottom: 0.75rem;
}

.category-content p {
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
}

/* === GLOBAL PRESENCE SECTION === */
.global-presence {
    background: var(--light-gray);
}

.global-presence-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Uses same .service-card and .service-icon styles as Services section */

/* === WHY CHOOSE US SECTION === */
.why-choose-us {
    background: var(--white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
}

.advantage-item {
    text-align: center;
}

.advantage-icon {
    color: var(--primary-red);
    margin: 0 auto 1.5rem;
}

.advantage-item h3 {
    margin-bottom: 0.75rem;
    color: var(--dark-black);
}

.advantage-item p {
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

/* === QUALITY & COMPLIANCE SECTION === */
.quality-compliance {
    background: var(--light-gray);
}

.quality-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.quality-text h2 {
    text-align: left;
}

.quality-text .header-line {
    margin: 0 0 2rem 0;
}

.quality-text .lead-paragraph {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-gray);
}

.standards-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.standard-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.standard-check {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.standard-text h4 {
    margin-bottom: 0.25rem;
    color: var(--dark-black);
}

.standard-text p {
    margin: 0;
    color: var(--text-gray);
    line-height: 1.6;
}

.quality-image .image-placeholder {
    height: 500px;
}

/* === HOW WE WORK SECTION === */
.how-we-work {
    background: var(--white);
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.process-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 32px;
    top: 70px;
    width: 2px;
    height: calc(100% + 2rem);
    background: var(--border-color);
}

.step-number {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.step-content {
    flex: 1;
    padding-top: 0.5rem;
}

.step-content h3 {
    color: var(--dark-black);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

/* === COMPANIES SECTION === */
.companies {
    background: var(--light-gray);
}

.companies-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.flagship-company {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.company-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-red);
}

.company-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.company-description strong {
    color: var(--primary-red);
    font-weight: 700;
}

/* === CONTACT SECTION === */
.contact {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 2.5rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details h4 {
    color: var(--dark-black);
    margin-bottom: 0.25rem;
}

.contact-details p,
.contact-details a {
    color: var(--text-gray);
    margin: 0;
}

.contact-details a:hover {
    color: var(--primary-red);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

/* === FOOTER === */
.footer {
    background: var(--dark-black);
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem 0;
    text-align: center;
}

.footer-content p {
    margin: 0;
}

/* === ANIMATIONS === */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero-title { font-size: 2.75rem; }
    .hero-subtitle { font-size: 1.125rem; }

    .hero-stats {
        gap: 2rem;
    }

    .services-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content,
    .quality-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 4rem 0;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .nav-menu {
        gap: 1rem;
    }

    .nav-menu a:not(.btn-contact) {
        display: none;
    }

    .language-switcher {
        margin-left: 0.5rem;
    }

    .lang-btn {
        font-size: 0.85rem;
        padding: 0.2rem 0.4rem;
    }

    /* Hero responsive */
    .hero {
        flex-direction: column;
        min-height: auto;
    }

    .hero-text-side {
        flex: 1;
        padding: 3rem 2rem;
        min-height: 60vh;
        justify-content: center;
    }

    .hero-image-side {
        flex: 1;
        min-height: 40vh;
    }

    .hero-badges {
        flex-wrap: wrap;
    }

    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }

    .hero-badges {
        gap: 0.5rem;
    }

    .hero-badge-separator {
        display: none;
    }

    .hero-badge {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }


    .logo img {
        height: 40px;
    }

    .btn-contact {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .services-grid,
    .products-grid,
    .advantages-grid,
    .global-presence-grid {
        grid-template-columns: 1fr;
    }

    .advantage-item {
        text-align: center;
        padding: 1rem;
    }

    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .process-step::after {
        display: none;
    }

    .flagship-company {
        padding: 2rem 1.5rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .image-placeholder,
    .quality-image .image-placeholder {
        height: 300px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }

    .hero-title { font-size: 1.75rem; }
    .hero-subtitle { font-size: 0.95rem; }

    .about-text .lead-paragraph {
        font-size: 1.125rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* === PRINT === */
@media print {
    .navbar,
    .scroll-indicator,
    .contact-form-wrapper {
        display: none;
    }
}
