/* ============================================================
   B2B Industrial Connector Website — Master Stylesheet
   Theme: Navy / White / Amber — Clean Industrial B2B
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-primary: #0f1f2e;
  --color-primary-light: #1a2f42;
  --color-primary-dark: #0a1620;
  --color-accent: #f5a623;
  --color-accent-hover: #d9941e;
  --color-text: #2c3e50;
  --color-text-light: #6c7a89;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6f8;
  --color-bg-dark: #0f1f2e;
  --color-border: #e0e4e8;
  --color-white: #ffffff;
  --font-primary: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
  --transition: 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-hover); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; color: var(--color-primary); }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 6px;
  font-size: 15px; font-weight: 600;
  transition: all var(--transition);
  cursor: pointer; border: none; line-height: 1;
}
.btn-primary {
  background: var(--color-accent); color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-accent-hover); color: var(--color-white);
  transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent; color: var(--color-white);
  border: 2px solid var(--color-white);
}
.btn-outline:hover {
  background: var(--color-white); color: var(--color-primary);
}
.btn-outline-dark {
  background: transparent; color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline-dark:hover {
  background: var(--color-primary); color: var(--color-white);
}
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-whatsapp {
  background: #25D366; color: white !important; border: none;
}
.btn-whatsapp:hover {
  background: #1da851; color: white !important;
}
.btn-download {
  background: var(--color-primary); color: white;
}
.btn-download:hover {
  background: var(--color-primary-light); color: white;
  transform: translateY(-1px);
}

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(15,31,46,0.97);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.logo {
  font-size: 20px; font-weight: 700; color: var(--color-white);
  display: flex; align-items: center; gap: 10px;
}
.logo span { color: var(--color-accent); }
.logo img { height: 40px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500;
  position: relative; padding: 4px 0;
  transition: color var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--color-accent);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--color-white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--color-accent); }
.nav-links a.active::after { width: 100%; }
.nav-links .btn { margin-left: 8px; padding: 10px 22px; font-size: 13px; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; cursor: pointer;
  background: none; border: none; padding: 4px; gap: 5px;
}
.hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--color-white); border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Page Hero (Inner Pages) ---------- */
.page-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
  text-align: center;
}
.page-hero h1 {
  font-size: 40px; color: var(--color-white); margin-bottom: 12px;
}
.page-hero p {
  font-size: 18px; color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto;
}

/* =============================================
   HOME PAGE — HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #162a3e 50%, var(--color-primary-light) 100%);
  position: relative; overflow: hidden;
  padding: 120px 0 80px;
}
.hero::before {
  content: ''; position: absolute;
  top: -50%; right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; display: flex; align-items: center; gap: 60px; }
.hero-content { flex: 1; }
.hero-content h1 {
  font-size: 44px; color: var(--color-white);
  margin-bottom: 20px; line-height: 1.15;
}
.hero-content h1 span { color: var(--color-accent); }
.hero-content p {
  font-size: 18px; color: rgba(255,255,255,0.7);
  max-width: 540px; margin-bottom: 32px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image { flex: 1; text-align: center; }
.hero-image video,
.hero-image img {
  border-radius: 12px; box-shadow: var(--shadow-lg);
  max-width: 100%; height: auto;
  display: block;
}

/* =============================================
   SECTIONS — Common
   ============================================= */
.section { padding: 80px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark {
  background: var(--color-bg-dark); color: rgba(255,255,255,0.8);
}
.section-dark h2, .section-dark h3 { color: var(--color-white); }
.section-title {
  font-size: 32px; text-align: center; margin-bottom: 12px;
}
.section-subtitle {
  text-align: center; color: var(--color-text-light);
  font-size: 17px; max-width: 600px; margin: 0 auto 48px;
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.5); }

/* =============================================
   PRODUCT CARDS (Home + Product Hall)
   ============================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--color-white);
  border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--color-border);
}
.product-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
}
.product-card-img {
  height: 200px; background: var(--color-bg-alt);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body { padding: 24px; }
.product-card-body h3 { font-size: 18px; margin-bottom: 8px; }
.product-card-body p {
  font-size: 14px; color: var(--color-text-light);
  margin-bottom: 16px; line-height: 1.5;
}

/* =============================================
   FACTORY HIGHLIGHTS / COUNTERS
   ============================================= */
.counters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px; text-align: center;
}
.counter-item { padding: 20px; }
.counter-number {
  font-size: 48px; font-weight: 700; color: var(--color-accent);
  line-height: 1; margin-bottom: 8px;
}
.counter-number::after { content: '+'; }
.counter-label { font-size: 16px; color: rgba(255,255,255,0.7); }

/* =============================================
   PRODUCT DETAIL — SPEC TABLE
   ============================================= */
.product-detail { padding: 100px 0 60px; }
.product-intro { display: flex; gap: 40px; align-items: flex-start; margin-bottom: 48px; }
.product-intro-gallery { flex: 1; }
.product-intro-gallery img {
  width: 100%; border-radius: 10px; box-shadow: var(--shadow-sm);
}
.product-intro-meta { flex: 1; }
.product-intro-meta h1 { font-size: 34px; margin-bottom: 16px; }
.product-intro-meta .desc { color: var(--color-text-light); margin-bottom: 20px; line-height: 1.7; }
.product-meta-list { margin-bottom: 24px; }
.product-meta-list li {
  padding: 10px 0; border-bottom: 1px solid var(--color-border);
  display: flex; justify-content: space-between; font-size: 15px;
}
.product-meta-list li span:first-child { font-weight: 600; color: var(--color-primary); }
.product-meta-list li span:last-child { color: var(--color-text-light); }
.product-intro-meta .btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Spec Tabs ---------- */
.spec-section { margin-top: 40px; }
.tab-nav {
  display: flex; gap: 4px;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 24px; overflow-x: auto;
}
.tab-nav button {
  padding: 12px 24px; font-size: 14px; font-weight: 600;
  background: none; border: none; cursor: pointer;
  color: var(--color-text-light);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  white-space: nowrap;
}
.tab-nav button:hover { color: var(--color-primary); }
.tab-nav button.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Spec Tables ---------- */
.spec-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px; margin-bottom: 32px;
}
.spec-table thead { background: var(--color-primary); color: var(--color-white); }
.spec-table th {
  padding: 14px 16px; text-align: left; font-weight: 600;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
}
.spec-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--color-border);
}
.spec-table tbody tr:nth-child(even) { background: var(--color-bg-alt); }
.spec-table tbody tr:hover { background: #eef2f7; }

/* =============================================
   CONTACT FORM
   ============================================= */
.form-section { padding: 100px 0 60px; }
.form-wrapper {
  max-width: 720px; margin: 0 auto;
  background: var(--color-white);
  padding: 48px; border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--color-primary); margin-bottom: 6px;
}
.form-group .required::after { content: ' *'; color: #e74c3c; }
.form-control {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--color-border); border-radius: 6px;
  font-size: 15px; font-family: var(--font-primary);
  transition: border-color var(--transition);
  background: var(--color-white);
}
.form-control:focus {
  outline: none; border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}
textarea.form-control { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; justify-content: center; padding: 16px; font-size: 16px; }
.form-note {
  font-size: 13px; color: var(--color-text-light);
  margin-top: 12px; text-align: center;
}
.form-success {
  display: none; text-align: center; padding: 40px;
}
.form-success.show { display: block; }
.form-success h3 { color: #27ae60; margin-bottom: 12px; }
.form-success p { color: var(--color-text-light); }

/* =============================================
   CUSTOMIZATION PAGE — CHECKLIST
   ============================================= */
.custom-checklist { margin-bottom: 32px; }
.checklist-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--color-border);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--color-accent);
}
.checklist-item label { font-size: 15px; cursor: pointer; }
.checklist-item .hint {
  font-size: 13px; color: var(--color-text-light);
  margin-left: auto;
}

/* =============================================
   APPLICATION CARDS
   ============================================= */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.app-card {
  background: var(--color-white); border-radius: 10px;
  padding: 32px; text-align: center;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.app-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
}
.app-card-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  background: var(--color-bg-alt); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.app-card h3 { font-size: 18px; margin-bottom: 8px; }
.app-card p { font-size: 14px; color: var(--color-text-light); line-height: 1.6; }

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.about-image img { border-radius: 10px; box-shadow: var(--shadow-sm); }
.about-text h2 { font-size: 32px; margin-bottom: 16px; }
.about-text p { margin-bottom: 16px; color: var(--color-text-light); line-height: 1.7; }
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px; margin-top: 32px;
}
.cert-item {
  text-align: center; padding: 20px;
  background: var(--color-white); border-radius: 8px;
  border: 1px solid var(--color-border);
}
.cert-item img { height: 60px; margin: 0 auto 8px; }
.cert-item span { font-size: 13px; font-weight: 600; display: block; }

/* =============================================
   CONTACT INFO
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info h2 { font-size: 28px; margin-bottom: 20px; }
.contact-info-item {
  display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start;
}
.contact-info-item .icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--color-bg-alt); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.contact-info-item h4 { font-size: 15px; margin-bottom: 4px; }
.contact-info-item p { font-size: 14px; color: var(--color-text-light); }

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 999;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: all var(--transition);
  color: white; font-size: 28px;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
  color: white;
}
.whatsapp-float .tooltip {
  position: absolute; right: 64px; top: 50%;
  transform: translateY(-50%);
  background: var(--color-primary);
  color: white; font-size: 13px;
  padding: 8px 14px; border-radius: 6px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
  font-weight: 500;
}
.whatsapp-float:hover .tooltip { opacity: 1; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 32px;
}
.footer-col h4 {
  font-size: 16px; color: var(--color-white);
  margin-bottom: 16px;
}
.footer-col p { font-size: 14px; line-height: 1.7; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 14px; color: rgba(255,255,255,0.5);
}
.footer-col ul a:hover { color: var(--color-accent); }
.footer-bottom {
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center; font-size: 13px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
/* Tablet */
@media (max-width: 992px) {
  .hero .container { flex-direction: column; text-align: center; }
  .hero-content p { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .hero-content h1 { font-size: 34px; }
  .hero-image { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-image { order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .product-intro { flex-direction: column; }
  .counters-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .counter-number { font-size: 36px; }
  .page-hero h1 { font-size: 32px; }
}

/* Mobile */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: var(--header-height); left: 0; right: 0;
    flex-direction: column; background: var(--color-primary-dark);
    padding: 20px; gap: 16px;
    transform: translateY(-100%); opacity: 0;
    transition: all 0.4s ease; pointer-events: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.open {
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
  .nav-links a { font-size: 16px; padding: 8px 0; }
  .nav-links .btn { margin-left: 0; }

  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-content h1 { font-size: 28px; }
  .hero-content p { font-size: 16px; }
  .section { padding: 50px 0; }
  .section-title { font-size: 26px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .form-wrapper { padding: 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .counters-grid { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .counter-number { font-size: 28px; }
  .counter-label { font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-hero { padding: 100px 0 40px; }
  .page-hero h1 { font-size: 26px; }
  .product-intro-meta h1 { font-size: 26px; }
  .spec-table { font-size: 12px; }
  .spec-table th, .spec-table td { padding: 10px 10px; }
  .tab-nav button { padding: 10px 14px; font-size: 13px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .counters-grid { grid-template-columns: 1fr; gap: 20px; }
  .container { padding: 0 16px; }
}

/* =============================================
   UTILITIES
   ============================================= */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.img-placeholder {
  background: linear-gradient(135deg, #e0e4e8, #f4f6f8);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-light); font-size: 14px;
  min-height: 100px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 90px 0 16px; background: var(--color-bg-alt);
  font-size: 13px; color: var(--color-text-light);
}
.breadcrumb a { color: var(--color-text-light); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb span { color: var(--color-text); }
.breadcrumb .sep { margin: 0 8px; }
