/* =============================================
   SINOQUIMICA — Design System & Styles
   Industrial Chemical Export · Chengdu → Latin America
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  /* Palette */
  --navy:       #0A1628;
  --navy-light: #132240;
  --navy-mid:   #1A3055;
  --amber:      #D4A843;
  --amber-dark: #B8922F;
  --cream:      #F5F0E8;
  --white:      #FFFFFF;
  --text-dark:  #0A1628;
  --text-mid:   #5A6A7A;
  --text-light: #A0AABB;
  --border:     #E2DDD4;
  --success:    #2A8B5E;
  --error:      #C75B39;

  /* Typography */
  --font-display: 'Ubuntu', sans-serif;
  --font-body:    'Google Sans', sans-serif;

  /* Spacing */
  --s1: 0.5rem;  --s2: 1rem;  --s3: 1.5rem;  --s4: 2rem;
  --s5: 3rem;    --s6: 4rem;  --s8: 6rem;     --s10: 8rem;

  /* Radius */
  --r-sm: 4px;  --r-md: 8px;  --r-lg: 16px;  --r-xl: 24px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.2s;
  --t-med: 0.4s;
  --t-slow: 0.7s;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; }

a { text-decoration: none; color: inherit; transition: color var(--t-fast) var(--ease); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Utility ---------- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--s6);
}
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: var(--s2);
}
.section-header h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: var(--s2);
  color: var(--navy);
}
.section-header p {
  color: var(--text-mid);
  font-size: 1.1rem;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--amber);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,168,67,0.3); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* =============================================
   HEADER
   ============================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
#site-header.scrolled {
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s4);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.logo-mark {
  width: 40px; height: 40px;
  background: var(--amber);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

#main-nav {
  display: flex;
  gap: var(--s3);
}
#main-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color var(--t-fast) var(--ease);
}
#main-nav a:hover { color: var(--white); }
#main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width var(--t-med) var(--ease);
}
#main-nav a:hover::after { width: 100%; }

.lang-switcher {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  padding: 3px;
}
.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.lang-btn.active {
  background: var(--amber);
  color: var(--navy);
}
.lang-btn:hover:not(.active) { color: var(--white); }

#mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
#mobile-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--t-fast) var(--ease);
}

/* =============================================
   HERO
   ============================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hex-grid {
  position: absolute;
  inset: -50px;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(212,168,67,0.06) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(42,107,94,0.08) 0%, transparent 50%);
}
.hex-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='70' viewBox='0 0 60 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 70px;
}

.hero-content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px var(--s4) var(--s6);
  z-index: 2;
}
.hero-tag {
  display: inline-block;
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s3);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}
#hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--white);
  font-weight: 800;
  max-width: 800px;
  margin-bottom: var(--s3);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.4s forwards;
}
.hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin-bottom: var(--s5);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.6s forwards;
}
.hero-ctas {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-bottom: var(--s8);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.8s forwards;
}

.hero-stats {
  display: flex;
  gap: var(--s6);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 1s forwards;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.5s forwards;
}
.scroll-arrow {
  width: 24px; height: 24px;
  border-right: 2px solid rgba(255,255,255,0.3);
  border-bottom: 2px solid rgba(255,255,255,0.3);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

/* =============================================
   PRODUCTS
   ============================================= */
#products {
  padding: var(--s10) var(--s4);
  background: var(--cream);
}
.products-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}

.product-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--s4);
  position: relative;
  border: 1px solid var(--border);
  transition: all var(--t-med) var(--ease);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(10,22,40,0.1);
  border-color: var(--amber);
}
.card-icon {
  width: 56px; height: 56px;
  margin-bottom: var(--s3);
  color: var(--amber);
}
.product-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--s2);
  color: var(--navy);
}
.product-list {
  flex: 1;
  margin-bottom: var(--s3);
}
.product-list li {
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--text-mid);
  position: relative;
  padding-left: 16px;
}
.product-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.5;
  transform: translateY(-50%);
}
.card-inquiry {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--amber-dark);
  letter-spacing: 0.02em;
  transition: all var(--t-fast) var(--ease);
}
.card-inquiry:hover { color: var(--navy); gap: 8px; }

/* =============================================
   ABOUT
   ============================================= */
#about {
  padding: var(--s10) var(--s4);
  background: var(--white);
}
.about-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s8);
  align-items: center;
}
.about-text .section-tag { margin-bottom: var(--s2); }
.about-text h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
  margin-bottom: var(--s3);
}
.about-text p {
  color: var(--text-mid);
  font-size: 1.05rem;
  margin-bottom: var(--s3);
  line-height: 1.7;
}
.about-features {
  margin-top: var(--s4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}
.feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.feature-icon {
  color: var(--amber);
  font-size: 1.2rem;
  line-height: 1.4;
}
.feature strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 2px;
}
.feature span {
  font-size: 0.85rem;
  color: var(--text-mid);
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.geo-frame {
  width: 360px; height: 360px;
  position: relative;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, var(--cream) 0%, var(--white) 70%);
}
.geo-inner {
  width: 200px; height: 200px;
  border: 2px dashed var(--amber);
  border-radius: 50%;
  opacity: 0.4;
  animation: spin 30s linear infinite;
}
.geo-label {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  background: var(--white);
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.geo-latam {
  top: auto;
  bottom: 25%;
}
.geo-line {
  position: absolute;
  width: 2px;
  height: 80px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.4;
}

/* =============================================
   INDUSTRIES
   ============================================= */
#industries {
  padding: var(--s10) var(--s4);
  background: var(--navy);
}
#industries .section-header h2 { color: var(--white); }
#industries .section-header p { color: var(--text-light); }

.industries-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s2);
}
.ind-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--s3) var(--s2);
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: all var(--t-med) var(--ease);
}
.ind-card:hover {
  background: var(--navy-mid);
  border-color: var(--amber);
  transform: translateY(-4px);
}
.ind-icon { font-size: 2rem; }

/* =============================================
   INQUIRY
   ============================================= */
#inquiry {
  padding: var(--s10) var(--s4);
  background: var(--cream);
}
.inquiry-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s8);
  align-items: start;
}
.inquiry-info .section-tag { margin-bottom: var(--s2); }
.inquiry-info h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
  margin-bottom: var(--s2);
}
.inquiry-info > p {
  color: var(--text-mid);
  font-size: 1.05rem;
  line-height: 1.7;
}
.inquiry-features {
  display: flex;
  gap: var(--s4);
  margin-top: var(--s5);
}
.iq-feat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.iq-feat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
}
.iq-feat span {
  font-size: 0.85rem;
  color: var(--text-mid);
}

.inquiry-form {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--s5);
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(10,22,40,0.06);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  margin-bottom: var(--s3);
}
.form-group { display: flex; flex-direction: column; }
.form-group.full { margin-bottom: var(--s3); }
.form-group label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(212,168,67,0.15);
}
.form-group textarea { resize: vertical; }
.btn-submit { width: 100%; margin-top: var(--s2); }

.form-feedback {
  margin-top: var(--s2);
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 24px;
}
.form-feedback.success { color: var(--success); }
.form-feedback.error { color: var(--error); }

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: var(--navy);
  padding: var(--s8) var(--s4) var(--s4);
  color: rgba(255,255,255,0.7);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s5);
  padding-bottom: var(--s6);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: var(--s2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo .logo-mark {
  width: 36px; height: 36px;
  font-size: 1rem;
}
.footer-col p { font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--s2);
  font-size: 0.95rem;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  padding: 3px 0;
  transition: color var(--t-fast) var(--ease);
}
.footer-col a:hover { color: var(--amber); }
.footer-col span {
  display: block;
  font-size: 0.9rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: var(--s2);
}
.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-form input:focus { border-color: var(--amber); }
.newsletter-form button {
  padding: 10px 20px;
  background: var(--amber);
  color: var(--navy);
  border: none;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.newsletter-form button:hover { background: var(--amber-dark); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: var(--s4);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%      { transform: rotate(45deg) translateY(8px); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(4, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: var(--s5); }
  .about-visual { order: -1; }
  .geo-frame { width: 280px; height: 280px; }
  .inquiry-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  #main-nav { display: none; }
  .lang-switcher { display: none; }
  #mobile-toggle { display: flex; }

  #main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(10,22,40,0.98);
    padding: var(--s4);
    gap: var(--s2);
    z-index: 999;
  }
  #main-nav.open a {
    font-size: 1.2rem;
    padding: var(--s1) 0;
  }

  .products-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .about-features { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; gap: var(--s4); }
  .form-row { grid-template-columns: 1fr; }
  .inquiry-features { flex-wrap: wrap; }
  .geo-frame { width: 240px; height: 240px; }
}

@media (max-width: 480px) {
  .hero-content { padding-top: 100px; }
  #hero h1 { font-size: 2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr 1fr; }
}