/* ============================================
   ChinaShippingZ.com - Global Freight & Procurement
   Professional CSS Stylesheet - SEO + GEO Optimized
   ============================================ */

:root {
    --primary: #1e3a8a;
    --primary-light: #2563eb;
    --accent: #f17228;
    --accent-hover: #e3541e;
    --text-dark: #0f172a;
    --text-medium: #475569;
    --text-light: #94a3b8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --header-height: 70px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--text-dark); }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; color: var(--text-medium); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; font-size: 1rem; font-weight: 600;
    border-radius: var(--radius); border: none; cursor: pointer;
    transition: var(--transition); text-decoration: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #1e40af; color: white; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-hover); color: white; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

.header {
    position: fixed; top: 0; left: 0; right: 0; height: var(--header-height);
    background: var(--bg-white); box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000; transition: var(--transition);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.logo-icon { width: 38px; height: 38px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.1rem; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav-link { padding: 8px 16px; color: var(--text-dark); font-weight: 500; border-radius: var(--radius); transition: var(--transition); }
.nav-link:hover, .nav-link.active { background: var(--bg-light); color: var(--primary); }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-dark); cursor: pointer; }

.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: white; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-title { font-size: 3rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; color: white; }
.hero-subtitle { font-size: 1.2rem; color: rgba(255,255,255,0.85); margin-bottom: 30px; line-height: 1.6; }
.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-btn-primary { background: white; color: var(--primary); padding: 14px 32px; font-weight: 700; border-radius: var(--radius); transition: var(--transition); }
.hero-btn-primary:hover { background: var(--bg-light); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.hero-btn-outline { background: transparent; color: white; padding: 14px 32px; font-weight: 700; border-radius: var(--radius); border: 2px solid rgba(255,255,255,0.5); transition: var(--transition); }
.hero-btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; color: white; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.hero-stat { text-align: center; padding: 20px; background: rgba(255,255,255,0.1); border-radius: var(--radius-lg); backdrop-filter: blur(10px); }
.hero-stat-number { font-size: 2rem; font-weight: 800; color: white; }
.hero-stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.7); }

.section { padding: 80px 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-label { display: inline-block; padding: 6px 16px; background: rgba(30,58,138,0.1); color: var(--primary); font-size: 0.85rem; font-weight: 600; border-radius: 20px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.section-title { font-size: 2.2rem; margin-bottom: 15px; }
.section-desc { color: var(--text-medium); font-size: 1.1rem; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-card { background: var(--bg-white); border-radius: var(--radius-lg); padding: 35px 30px; box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--border); }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--primary-light); }
.service-icon { width: 60px; height: 60px; background: rgba(30,58,138,0.1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary); margin-bottom: 20px; }
.service-title { font-size: 1.2rem; margin-bottom: 10px; }
.service-desc { color: var(--text-medium); font-size: 0.95rem; line-height: 1.6; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.feature-item { display: flex; gap: 15px; align-items: flex-start; }
.feature-icon { width: 50px; height: 50px; min-width: 50px; background: var(--primary); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; }
.feature-content h4 { margin-bottom: 5px; font-size: 1.1rem; }
.feature-content p { font-size: 0.9rem; margin-bottom: 0; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.blog-card { background: var(--bg-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--border); }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.blog-image { width: 100%; height: 200px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); display: flex; align-items: center; justify-content: center; color: white; font-size: 3rem; }
.blog-content { padding: 25px; }
.blog-meta { display: flex; gap: 15px; margin-bottom: 12px; font-size: 0.85rem; color: var(--text-light); flex-wrap: wrap; }
.blog-title { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.4; }
.blog-excerpt { color: var(--text-medium); font-size: 0.95rem; line-height: 1.6; margin-bottom: 15px; }
.blog-link { font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }

.cta { background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%); padding: 80px 0; text-align: center; color: white; }
.cta-title { font-size: 2.2rem; color: white; margin-bottom: 15px; }
.cta-desc { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 600px; margin: 0 auto 30px; }

.footer { background: var(--text-dark); color: rgba(255,255,255,0.7); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { color: white; font-size: 1.5rem; font-weight: 800; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.footer-desc { color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 20px; }
.footer-title { color: white; font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-links a:hover { color: white; padding-left: 5px; }
.footer-contact p { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: rgba(255,255,255,0.6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-bottom: 0; }

.article-header { padding: 140px 0 60px; background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%); color: white; }
.article-meta { display: flex; gap: 20px; margin-bottom: 20px; color: rgba(255,255,255,0.8); font-size: 0.95rem; flex-wrap: wrap; }
.article-title { font-size: 2.5rem; color: white; line-height: 1.3; margin-bottom: 20px; }
.article-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.article-tag { padding: 6px 14px; background: rgba(255,255,255,0.15); color: white; border-radius: 20px; font-size: 0.85rem; font-weight: 500; }
.article-body { padding: 60px 0; }
.article-content { max-width: 800px; margin: 0 auto; }
.article-content h2 { font-size: 1.8rem; margin: 40px 0 20px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.article-content h3 { font-size: 1.4rem; margin: 30px 0 15px; color: var(--primary); }
.article-content p { margin-bottom: 20px; font-size: 1.05rem; line-height: 1.8; }
.article-content ul, .article-content ol { margin-bottom: 20px; padding-left: 25px; }
.article-content li { margin-bottom: 10px; line-height: 1.7; }
.article-content blockquote { background: var(--bg-light); border-left: 4px solid var(--primary); padding: 20px 25px; margin: 25px 0; border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
.article-content blockquote p { margin-bottom: 0; }
.article-content table { width: 100%; border-collapse: collapse; margin: 25px 0; font-size: 0.95rem; }
.article-content th, .article-content td { padding: 12px 15px; border: 1px solid var(--border); text-align: left; }
.article-content th { background: var(--bg-light); font-weight: 600; color: var(--text-dark); }
.article-content tr:nth-child(even) { background: var(--bg-light); }
.article-content strong { color: var(--text-dark); font-weight: 600; }
.article-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-toc { background: var(--bg-light); border-radius: var(--radius-lg); padding: 25px 30px; margin-bottom: 40px; border: 1px solid var(--border); }
.article-toc h4 { margin-bottom: 15px; font-size: 1.1rem; }
.article-toc ul { list-style: none; padding-left: 0; }
.article-toc li { margin-bottom: 8px; }
.article-toc a { color: var(--text-medium); font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.article-toc a:hover { color: var(--primary); }
.article-toc a::before { content: '#'; color: var(--primary-light); font-weight: 600; }

.faq-section { margin: 40px 0; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 15px; overflow: hidden; }
.faq-question { padding: 18px 20px; background: var(--bg-light); font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-answer.active { padding: 18px 20px; max-height: 500px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h3 { margin-bottom: 20px; }
.contact-item { display: flex; gap: 15px; margin-bottom: 25px; align-items: flex-start; }
.contact-item-icon { width: 50px; height: 50px; min-width: 50px; background: rgba(30,58,138,0.1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.2rem; }
.contact-item-content h4 { margin-bottom: 5px; font-size: 1.1rem; }
.contact-item-content p { margin-bottom: 0; color: var(--text-medium); }
.contact-form { background: var(--bg-white); padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--border); }
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text-dark); }
.form-input, .form-textarea, .form-select { width: 100%; padding: 12px 15px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; font-family: inherit; transition: var(--transition); background: var(--bg-white); }
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,58,138,0.1); }
.form-textarea { min-height: 150px; resize: vertical; }

.about-hero { padding: 140px 0 80px; background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%); color: white; text-align: center; }
.about-hero h1 { color: white; font-size: 2.8rem; margin-bottom: 15px; }
.about-hero p { color: rgba(255,255,255,0.85); font-size: 1.2rem; max-width: 700px; margin: 0 auto; }
.about-content { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 80px; }
.about-grid.reverse { direction: rtl; }
.about-grid.reverse > * { direction: ltr; }
.about-image { width: 100%; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--primary-light), var(--primary)); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; color: white; font-size: 4rem; }
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 15px; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.value-card { text-align: center; padding: 30px; background: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--border); }
.value-icon { width: 70px; height: 70px; background: rgba(30,58,138,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.8rem; color: var(--primary); }

.breadcrumb { padding: 100px 0 30px; background: var(--bg-light); border-bottom: 1px solid var(--border); }
.breadcrumb-inner { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-medium); }
.breadcrumb-inner a { color: var(--primary); }
.breadcrumb-separator { color: var(--text-light); }

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.bg-light { background: var(--bg-light); }


/* Card Images */
.service-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
    display: block;
}
.service-card { padding-top: 0; overflow: hidden; }
.service-card .service-icon-wrap {
    padding: 25px 30px 0;
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.about-grid-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
    box-shadow: var(--shadow-hover);
}

.value-card-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
}

/* Hero backgrounds per page */
.about-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, rgba(30,58,138,0.92) 0%, rgba(30,64,175,0.92) 100%), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1600&q=80&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: white; text-align: center;
}
.about-hero h1 { color: white; font-size: 2.8rem; margin-bottom: 15px; }
.about-hero p { color: rgba(255,255,255,0.85); font-size: 1.2rem; max-width: 700px; margin: 0 auto; }

.hero-bg-services {
    background: linear-gradient(135deg, rgba(30,58,138,0.92) 0%, rgba(30,64,175,0.92) 100%), url('https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?w=1600&q=80&auto=format&fit=crop') !important;
    background-size: cover !important;
    background-position: center !important;
}
.hero-bg-about {
    background: linear-gradient(135deg, rgba(30,58,138,0.92) 0%, rgba(30,64,175,0.92) 100%), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1600&q=80&auto=format&fit=crop') !important;
    background-size: cover !important;
    background-position: center !important;
}
.hero-bg-blog {
    background: linear-gradient(135deg, rgba(30,58,138,0.92) 0%, rgba(30,64,175,0.92) 100%), url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=1600&q=80&auto=format&fit=crop') !important;
    background-size: cover !important;
    background-position: center !important;
}
.hero-bg-contact {
    background: linear-gradient(135deg, rgba(30,58,138,0.92) 0%, rgba(30,64,175,0.92) 100%), url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?w=1600&q=80&auto=format&fit=crop') !important;
    background-size: cover !important;
    background-position: center !important;
}

@media (max-width: 992px) {
    .hero-inner, .contact-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-grid.reverse { direction: ltr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 2.2rem; }
    .article-title { font-size: 1.8rem; }
}
@media (max-width: 768px) {
    .nav { display: none; position: absolute; top: var(--header-height); left: 0; right: 0; background: var(--bg-white); flex-direction: column; padding: 20px; box-shadow: var(--shadow); gap: 5px; }
    .nav.active { display: flex; }
    .mobile-toggle { display: block; }
    .hero-stats { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .blog-grid { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; }
    h1 { font-size: 2rem; } h2 { font-size: 1.6rem; }
    .section-title { font-size: 1.8rem; }
    .cta-title { font-size: 1.8rem; }
    .about-hero h1 { font-size: 2.2rem; }
}
@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .section { padding: 50px 0; }
    .hero { padding: 120px 0 60px; }
    .contact-form { padding: 25px; }
}

/* ============================================
   WhatsApp Floating CTA - Circular Icon Only
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* ============================================
   Images & Banner
   ============================================ */
.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}
.article-featured-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}
@media (max-width: 768px) {
    .article-featured-img {
        height: 250px;
    }
}
.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.hero-image-container {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}



