/* ==========================================================================
   ZENGTAI CASTTECH FOUNDRY TECHNOLOGIES
   Corporate Light Mode Design System — White, Blue & Orange Palette
   Modeled on: https://www.ytzhengtai.cn/
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Color Palette — White, Blue & Orange */
  --bg-white: #ffffff;
  --bg-surface: #f8fafc;
  --bg-surface-alt: #f1f5f9;
  --bg-ice-blue: #f0f7ff;
  
  --primary-blue: #1d4ed8;
  --primary-blue-hover: #1e40af;
  --primary-blue-light: #eff6ff;
  --primary-blue-border: #bfdbfe;

  --accent-orange: #ea580c;
  --accent-orange-hover: #c2410c;
  --accent-orange-light: #fff7ed;
  --accent-orange-border: #fed7aa;

  --text-primary: #0f172a;    /* Deep slate for maximum contrast & crisp legibility */
  --text-secondary: #334155;  /* Slate 700 */
  --text-muted: #64748b;      /* Slate 500 */

  --border-subtle: #e2e8f0;
  --border-card: #cbd5e1;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
  font-size: 16.25px;
}

@media (min-width: 768px) {
  html {
    font-size: 17px;
  }
}

/* Scaled micro-labels and badges for crisp, balanced legibility across all pages */
.text-\[9px\] { font-size: 0.625rem !important; }
.text-\[10px\] { font-size: 0.6875rem !important; }
.text-\[11px\] { font-size: 0.75rem !important; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-white);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, .font-heading {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.font-mono {
  font-family: var(--font-mono);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* --------------------------------------------------------------------------
   Buttons & Calls to Action (Blue & Orange Palette)
   -------------------------------------------------------------------------- */
.btn-primary-blue {
  background-color: var(--primary-blue);
  color: #ffffff !important;
  font-weight: 700;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.btn-primary-blue:hover {
  background-color: var(--primary-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.35);
}

.btn-accent-orange {
  background-color: var(--accent-orange);
  color: #ffffff !important;
  font-weight: 700;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

.btn-accent-orange:hover {
  background-color: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
}

.btn-outline-blue {
  background-color: #ffffff;
  color: var(--primary-blue) !important;
  border: 2px solid var(--primary-blue);
  font-weight: 700;
  transition: all 0.25s ease;
}

.btn-outline-blue:hover {
  background-color: var(--primary-blue-light);
  transform: translateY(-2px);
}

.btn-outline-orange {
  background-color: #ffffff;
  color: var(--accent-orange) !important;
  border: 2px solid var(--accent-orange);
  font-weight: 700;
  transition: all 0.25s ease;
}

.btn-outline-orange:hover {
  background-color: var(--accent-orange-light);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Card Styles & Elevation
   -------------------------------------------------------------------------- */
.zt-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.zt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -6px rgba(15, 23, 42, 0.1);
  border-color: var(--primary-blue-border);
}

.zt-card-orange-hover:hover {
  border-color: var(--accent-orange-border);
  box-shadow: 0 16px 30px -6px rgba(234, 88, 12, 0.12);
}

/* --------------------------------------------------------------------------
   Badges & Pills
   -------------------------------------------------------------------------- */
.badge-blue {
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
  border: 1px solid var(--primary-blue-border);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-orange {
  background-color: var(--accent-orange-light);
  color: var(--accent-orange);
  border: 1px solid var(--accent-orange-border);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Interactive Slider Component ("What We Offer")
   -------------------------------------------------------------------------- */
.slider-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.slider-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.slider-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .slider-card {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (min-width: 1024px) {
  .slider-card {
    flex: 0 0 calc(33.333% - 16px);
  }
}

.slider-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transition: all 0.2s ease;
}

.slider-nav-btn:hover {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
  transform: scale(1.08);
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #cbd5e1;
  transition: all 0.3s ease;
  cursor: pointer;
}

.slider-dot.active {
  width: 28px;
  border-radius: 9999px;
  background-color: var(--primary-blue);
}

/* --------------------------------------------------------------------------
   Pristine Background Video / Photo in Hero
   -------------------------------------------------------------------------- */
#heroVideoPlayer,
#heroBgImage img {
  filter: none !important;
}

/* --------------------------------------------------------------------------
   Custom Scrollbar
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
