/* ============================================
   JARDINE & TEXAS GLOBAL - Corporate Website
   ============================================ */

:root {
    --primary: #1a3a2a;
    --primary-light: #2d5a3f;
    --accent: #c8a45c;
    --accent-light: #d4b76e;
    --dark: #111111;
    --text: #333333;
    --text-light: #666666;
    --bg: #ffffff;
    --bg-alt: #f8f7f4;
    --bg-dark: #1a1a1a;
    --border: #e5e5e5;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.logo .logo-en {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    line-height: 1.2;
}

.logo .logo-zh {
    font-size: 11px;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    margin-left: 12px;
}

.lang-btn {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
}

.lang-btn.active {
    background: var(--primary);
    color: #fff;
}

/* Nav Toggle (Mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* ===== Hero - Food Themed ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8B1A1A 0%, #C62828 25%, #D84315 50%, #BF360C 75%, #8B1A1A 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* Warm food glow effects */
.hero-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,183,77,0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,138,101,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

/* Floating food emoji elements */
.food-float {
    position: absolute;
    font-size: 48px;
    opacity: 0.12;
    animation: foodFloat 8s ease-in-out infinite;
    pointer-events: none;
    user-select: none;
}

@keyframes foodFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
    75% { transform: translateY(-25px) rotate(3deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 28px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
    margin-bottom: 20px;
}

.hero-zh {
    display: block;
    font-size: clamp(32px, 5vw, 56px);
    color: #fff;
    font-weight: 900;
    letter-spacing: 6px;
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-en {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(14px, 2vw, 20px);
    color: #FFD54F;
    letter-spacing: 4px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 22px);
    color: rgba(255,255,255,0.85);
    font-weight: 300;
    margin-bottom: 32px;
    letter-spacing: 2px;
}

/* Hero product category highlights */
.hero-highlights {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
}

.highlight-icon {
    font-size: 20px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    letter-spacing: 1px;
}

.btn-primary {
    background: #FFD54F;
    color: #5D1A00;
    font-weight: 700;
}

.btn-primary:hover {
    background: #FFECB3;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,213,79,0.4);
}

.btn-outline {
    border: 1.5px solid rgba(255,255,255,0.4);
    color: #fff;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 1.5px solid rgba(255,255,255,0.4);
    border-bottom: 1.5px solid rgba(255,255,255,0.4);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.light h2 {
    color: #fff;
}

.section-header.light .section-tag {
    color: var(--accent);
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    color: var(--primary);
    font-weight: 900;
    letter-spacing: 2px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ===== About ===== */
.about {
    background: var(--bg-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-lead {
    font-size: 20px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-light);
    line-height: 1.9;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.stat-card {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

/* ===== Products ===== */
.products {
    background: #fff;
}

.product-category {
    margin-bottom: 60px;
}

.product-category:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bg-alt);
}

.category-icon {
    font-size: 28px;
}

.category-header h3 {
    font-size: 22px;
    color: var(--primary);
    font-weight: 700;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.product-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-icon {
    font-size: 48px;
    opacity: 0.6;
}

.product-img-placeholder {
    display: none;
}

.product-img img + .product-icon {
    display: none;
}

.exclusive-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
    z-index: 2;
}

.product-info {
    padding: 18px;
}

.product-brand {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.product-info h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 6px;
    font-weight: 700;
}

.product-info p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== Meat Section ===== */
.meat {
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.meat::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200,164,92,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.meat-desc {
    text-align: center;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: -30px auto 50px;
    font-size: 16px;
}

.meat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.meat-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.meat-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-4px);
}

.meat-img-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.meat-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.meat-icon {
    font-size: 48px;
}

.meat-card h4 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 700;
}

.meat-card p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.meat-partner {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.meat-partner p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    margin-bottom: 16px;
}

.meat-partner strong {
    color: var(--accent);
}

.partner-logo {
    max-width: 160px;
    height: auto;
    opacity: 0.7;
    transition: var(--transition);
    filter: brightness(2);
}

.partner-logo:hover {
    opacity: 1;
}

/* ===== Baby Products ===== */
.baby {
    background: var(--bg-alt);
}

.baby-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.baby-brand-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.baby-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.baby-info h3 {
    font-size: 20px;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 20px;
}

.baby-info p {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.9;
}

.baby-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    list-style: none;
}

.baby-features li {
    background: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    box-shadow: var(--shadow);
}

/* ===== Brand Wall ===== */
.brand-wall {
    background: #fff;
    padding: 80px 0;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 24px;
    align-items: center;
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    min-height: 120px;
    text-align: center;
}

.brand-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: var(--accent);
}

.brand-item img {
    max-width: 100px;
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: grayscale(30%);
    transition: var(--transition);
}

.brand-item:hover img {
    filter: grayscale(0%);
}

.brand-item .brand-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.brand-item .brand-name-en {
    font-size: 11px;
    color: var(--text-light);
}

.brand-logo-img {
    max-width: 100px;
    max-height: 50px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: grayscale(30%);
    transition: var(--transition);
}

.brand-item:hover .brand-logo-img {
    filter: grayscale(0%);
}

/* ===== Channels ===== */
.channels {
    background: var(--bg-alt);
}

.channels-desc {
    text-align: center;
    color: var(--text-light);
    margin: -30px auto 50px;
    max-width: 500px;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.channel-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.channel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.channel-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.channel-en {
    font-size: 12px;
    color: var(--text-light);
}

/* ===== Contact ===== */
.contact {
    background: var(--bg-dark);
    color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.contact-card:hover {
    background: rgba(255,255,255,0.08);
}

.contact-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.contact-card h4 {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.contact-card a,
.contact-card p {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--accent);
}

/* ===== Footer ===== */
.footer {
    background: #111;
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo .logo-en {
    font-family: 'Playfair Display', serif;
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-logo .logo-zh {
    display: block;
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 3px;
    margin-top: 4px;
}

.footer-tagline {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.3);
    font-size: 12px;
}

/* ===== Animations ===== */
.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: 968px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        transform: translateY(-120%);
        transition: var(--transition);
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .lang-toggle {
        margin-left: 0;
        margin-top: 12px;
        align-self: flex-start;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .meat-grid {
        grid-template-columns: 1fr;
    }

    .channels-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .brand-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .section {
        padding: 60px 0;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .product-img {
        height: 140px;
    }

    .product-info {
        padding: 14px;
    }

    .channels-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
