/* ==============================================================================
   HT Stock Hub - Corporate Supply Chain & Multi-Channel Operations
   Domain: stock.hatrung.top
   ============================================================================== */

:root {
  --primary: #1e40af;
  --primary-hover: #1e3a8a;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  
  --accent: #0284c7;
  --accent-light: #f0f9ff;
  
  --success: #059669;
  --success-light: #ecfdf5;
  --success-border: #a7f3d0;
  
  --dark-slate: #0f172a;
  --navy-surface: #1e293b;
  --navy-card: #0f172a;
  
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Site Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0f172a, #1e40af);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(30, 64, 175, 0.2);
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.2;
}

.brand-text span {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-light);
  display: block;
}

nav.main-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

nav.main-nav a:hover {
  color: var(--primary);
}

.header-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.status-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

/* Hero Section */
.hero-section {
  padding: 68px 0 52px;
  background: radial-gradient(circle at 10% 20%, rgba(30, 64, 175, 0.04) 0%, transparent 60%),
              radial-gradient(circle at 90% 80%, rgba(2, 132, 199, 0.04) 0%, transparent 50%);
  border-bottom: 1px solid var(--border-color);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 22px;
  border: 1px solid #e2e8f0;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0f172a;
  max-width: 920px;
  margin-bottom: 20px;
}

.hero-title span.highlight {
  color: var(--primary);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 840px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.stat-sub {
  font-size: 0.74rem;
  color: var(--text-light);
  margin-top: 6px;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 52px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* About / Operations Section */
.about-section {
  padding: 80px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.highlight-box {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  padding: 18px;
  border-radius: var(--radius-md);
}

.highlight-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.highlight-box p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

.about-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}

.about-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Facilities Section */
.facilities-section {
  padding: 80px 0;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-color);
}

.facility-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.facility-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.facility-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.facility-media {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #cbd5e1;
}

.facility-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.facility-card:hover .facility-media img {
  transform: scale(1.03);
}

.facility-content {
  padding: 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.facility-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0f172a;
}

.facility-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.facility-specs-list {
  list-style: none;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
}

.facility-specs-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-weight: 500;
}

.facility-specs-list li svg {
  color: var(--success);
  flex-shrink: 0;
}

/* Product Catalog Section */
.catalog-section {
  padding: 80px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.product-image-wrap {
  position: relative;
  height: 230px;
  background: #f1f5f9;
  overflow: hidden;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-sku-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.product-status-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--success);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.35);
}

.product-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category-crumb {
  font-size: 0.76rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
  line-height: 1.35;
}

.product-meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.product-meta-table tr {
  border-bottom: 1px solid #f1f5f9;
}

.product-meta-table td {
  padding: 6px 0;
}

.product-meta-table td.label {
  color: var(--text-light);
  width: 42%;
}

.product-meta-table td.value {
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
}

.product-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price-info span.lbl {
  display: block;
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 600;
}

.product-price-info span.val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.btn-view-spec {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-view-spec:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Technology & Integration Section */
.tech-section {
  padding: 80px 0;
  background: var(--dark-slate);
  color: #ffffff;
  border-bottom: 1px solid #1e293b;
}

.tech-section .section-title {
  color: #ffffff;
}

.tech-section .section-desc {
  color: #94a3b8;
}

.integration-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.integration-narrative h4 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 14px;
}

.integration-narrative p {
  font-size: 0.96rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 16px;
}

.integration-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.integration-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: #e2e8f0;
}

.integration-feature-list li strong {
  color: #38bdf8;
}

.workflow-card-box {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-xl);
}

.workflow-card-box h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #334155;
  color: #ffffff;
}

.flow-step-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
}

.flow-step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 36px;
  left: 17px;
  width: 2px;
  height: calc(100% - 16px);
  background: #334155;
}

.flow-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #38bdf8;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 2;
}

.flow-step-content h5 {
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.flow-step-content p {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* Quality & Compliance Section */
.standards-section {
  padding: 80px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.standard-card {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.standard-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.standard-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.standard-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Contact / Company Profile Section */
.contact-section {
  padding: 72px 0;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-color);
}

.contact-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  box-shadow: var(--shadow-md);
}

.contact-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.contact-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.9rem;
}

.contact-row-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-row-item strong {
  width: 130px;
  color: var(--text-light);
  font-weight: 600;
}

.contact-row-item span {
  color: var(--text-main);
  font-weight: 500;
}

.facility-hours-box {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.facility-hours-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.facility-hours-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.operating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  width: fit-content;
}

/* Site Footer */
footer.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 28px;
  font-size: 0.88rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 28px;
  margin-bottom: 28px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

/* Modal for Product Specifications */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-color);
}

.modal-head h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
}

.modal-body-content {
  padding: 28px;
}

.spec-sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 16px;
}

.spec-sheet-table tr {
  border-bottom: 1px solid #f1f5f9;
}

.spec-sheet-table td {
  padding: 10px 12px;
}

.spec-sheet-table td.spec-lbl {
  color: var(--text-light);
  width: 35%;
  font-weight: 500;
}

.spec-sheet-table td.spec-val {
  color: var(--text-main);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .facility-cards-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .integration-layout { grid-template-columns: 1fr; }
  .standards-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  nav.main-nav { display: none; }
  .hero-title { font-size: 2.1rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .standards-grid { grid-template-columns: 1fr; }
}
