/* =============================================
   Chip-OneStop — Main Stylesheet
   ============================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1e293b;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  --primary: #0f766e;
  --primary-dark: #0d6b63;
  --primary-light: #14b8a6;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
}

img, svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  padding: 12px 28px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-primary {
  background: #0f766e;
  color: #fff;
  border-color: #0f766e;
}
.btn-primary:hover {
  background: #0d6b63;
  border-color: #0d6b63;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}

.btn-outline {
  background: transparent;
  color: #0f766e;
  border-color: #0f766e;
}
.btn-outline:hover {
  background: #0f766e;
  color: #fff;
}

.btn-white {
  background: #fff;
  color: #0f766e;
  border-color: #fff;
}
.btn-white:hover {
  background: #f0fdfa;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-accent {
  background: #f59e0b;
  color: #1e293b;
  border-color: #f59e0b;
}
.btn-accent:hover {
  background: #d97706;
  border-color: #d97706;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

/* ---------- TOP BAR ---------- */
.topbar {
  background: #0f766e;
  color: #fff;
  font-size: 0.85rem;
  padding: 8px 0;
}

.topbar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ccfbf1;
  transition: color 0.2s;
}
.topbar-link:hover {
  color: #fff;
}
.topbar-link svg {
  flex-shrink: 0;
}

/* ---------- NAVBAR ---------- */
.navbar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo { color: #dc2626;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}
.nav-logo span {
  color: #0f766e;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: #475569;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: #0f766e;
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #0f766e;
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- MOBILE MENU ---------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  right: -320px;
  width: 280px;
  height: 100vh;
  background: #fff;
  z-index: 180;
  padding: 80px 32px 32px;
  transition: right 0.3s ease;
  flex-direction: column;
  gap: 20px;
}

.nav-mobile a {
  font-size: 1.1rem;
  font-weight: 500;
  color: #334155;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}
.nav-mobile .btn {
  margin-top: 12px;
  text-align: center;
}

/* ---------- PAGE HERO ---------- */
.page-hero {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.page-hero p {
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto;
  opacity: 0.92;
  line-height: 1.7;
}

/* ---------- SECTION ---------- */
.section {
  padding: 80px 0;
}

/* ---------- ABOUT CONTENT ---------- */
.about-content {
  max-width: 860px;
  margin: 0 auto;
}

.about-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  margin-top: 48px;
  position: relative;
  padding-bottom: 12px;
}
.about-content h2:first-child {
  margin-top: 0;
}
.about-content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: #0f766e;
  border-radius: 2px;
}

.about-content p {
  margin-bottom: 16px;
  color: #475569;
  font-size: 1.02rem;
}

.about-content ul {
  list-style: none;
  margin-bottom: 20px;
}
.about-content ul li {
  position: relative;
  padding: 6px 0 6px 28px;
  color: #475569;
  font-size: 1rem;
}
.about-content ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 8px;
  height: 8px;
  background: #14b8a6;
  border-radius: 50%;
}

/* ---------- STATS ---------- */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px 0;
}

.about-stat {
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.about-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.12);
}

.about-stat .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f766e;
  line-height: 1.2;
  margin-bottom: 6px;
}

.about-stat .label {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

/* ---------- CTA ---------- */
.cta-section {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid #1e293b;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.brand-name span {
  color: #14b8a6;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #94a3b8;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #1e293b;
  border-radius: 8px;
  color: #94a3b8;
  transition: all 0.2s;
}
.social-link:hover {
  background: #0f766e;
  color: #fff;
}
.social-link svg {
  flex-shrink: 0;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: #94a3b8;
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: #14b8a6;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* ---------- CONTAINER VARIANTS ---------- */
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.container-xs { max-width: 640px; margin: 0 auto; padding: 0 24px; }

/* ---------- SECTION HELPERS ---------- */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #0f766e;
  background: #f0fdfa;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.25;
}
.section-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.7;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header .section-subtitle {
  max-width: 640px;
  margin: 0 auto;
}
.section-alt {
  background: #f8fafc;
  padding: 80px 0;
}

/* ---------- BENEFITS GRID (Home + Service pages) ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.benefit-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.benefit-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}
.benefit-card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
}
.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.benefit-icon.yellow { background: #fef3c7; color: #d97706; }
.benefit-icon.blue   { background: #dbeafe; color: #2563eb; }
.benefit-icon.green  { background: #d1fae5; color: #059669; }

/* ---------- OPTIONS GRID (Home / Send Stocklist) ---------- */
.options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.option-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 36px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.option-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.option-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.option-icon.yellow { background: #fef3c7; color: #d97706; }
.option-icon.blue   { background: #dbeafe; color: #2563eb; }
.option-icon.green  { background: #d1fae5; color: #059669; }
.option-num {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0f766e;
  margin-bottom: 8px;
}
.option-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}
.option-card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}
.option-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #0f766e;
  transition: gap 0.2s;
  margin-top: auto;
}
.option-link:hover { gap: 10px; }
.option-link svg { width: 16px; height: 16px; }

/* ---------- CONTACT PAGE ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-info h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}
.contact-info > p {
  color: #64748b;
  margin-bottom: 32px;
  font-size: 1rem;
}
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contact-item .icon {
  width: 44px;
  height: 44px;
  background: #f0fdfa;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  flex-shrink: 0;
}
.contact-item .icon svg { flex-shrink: 0; }
.contact-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}
.contact-item p,
.contact-item a {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}
.contact-item a:hover { color: #0f766e; }

/* ---------- FORMS ---------- */
.form-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 36px 32px;
}
.form-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:not([type="checkbox"]):focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15,118,110,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #94a3b8; }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2364748b' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: #0f766e;
  background: #f0fdfa;
}
.upload-zone-content p { margin: 0; }
.upload-zone-text {
  font-size: 0.95rem;
  color: #334155;
  margin-bottom: 6px !important;
}
.upload-zone-hint {
  font-size: 0.8rem;
  color: #94a3b8;
}
.upload-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.upload-file-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.85rem;
  color: #334155;
}
.upload-file-item .file-icon { width: 14px; height: 14px; flex-shrink: 0; }
.upload-file-item .file-size { color: #94a3b8; font-size: 0.8rem; }
.upload-file-item .remove-file {
  cursor: pointer;
  color: #94a3b8;
  font-weight: 700;
  margin-left: 4px;
  transition: color 0.2s;
}
.upload-file-item .remove-file:hover { color: #ef4444; }

/* ---------- DETAIL SECTIONS (Service Pages) ---------- */
.detail-section {
  padding: 80px 0 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
  padding-bottom: 64px;
  border-bottom: 1px solid #e2e8f0;
}
.detail-left h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 8px;
  line-height: 1.2;
}
.detail-desc {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 24px;
}
.detail-benefits {
  margin-bottom: 28px;
}
.detail-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 1rem;
  color: #334155;
}
.detail-benefit svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #059669;
}
.detail-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .options-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  @media (max-width: 768px) {
.nav-links,
    .nav-actions {
      display: none;
    }
    .menu-toggle {
      display: flex;
    }
    .nav-overlay {
      display: block;
    }
    .nav-mobile {
      display: flex;
    }
} 

  .page-hero {
    padding: 48px 0;
  }
  .page-hero h1 {
    font-size: 2rem;
  }
  .page-hero p {
    font-size: 1rem;
  }

  .section {
    padding: 48px 0;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-content h2 {
    font-size: 1.5rem;
    margin-top: 36px;
  }

  .cta-section {
    padding: 48px 0;
  }
  .cta-section h2 {
    font-size: 1.6rem;
  }

  .benefits-grid,
  .options-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .detail-section {
    padding: 48px 0 0;
  }
  .detail-grid {
    padding-bottom: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .topbar .container {
    justify-content: center;
    gap: 16px;
  }
  .topbar {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
  }
  .btn-lg {
    padding: 14px 24px;
    font-size: 0.95rem;
  }
}
