/* ===================================================
   Non-Ferrous Metal Powders — Enterprise Website
   Shared Styles | Main Color: #2C5C97
   =================================================== */

/* --- CSS Custom Properties --- */
:root {
  --primary: #2C5C97;
  --primary-dark: #1E426E;
  --primary-light: #3A74B8;
  --secondary: #66B2FF;
  --secondary-light: #A0D4FF;
  --neutral: #F5F7FA;
  --neutral-dark: #E1E5EB;
  --text-dark: #1A1A2E;
  --text-body: #333344;
  --text-muted: #6B7280;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 6px rgba(44, 92, 151, 0.08);
  --shadow-md: 0 4px 16px rgba(44, 92, 151, 0.12);
  --shadow-lg: 0 8px 32px rgba(44, 92, 151, 0.16);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }
ul { list-style: none; }

/* --- Utility --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--neutral); }
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  text-align: center;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 48px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--neutral);
  color: var(--primary);
}

/* ===================================================
   NAVBAR
   =================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.navbar.shrink {
  box-shadow: var(--shadow-md);
}
.navbar.shrink .nav-logo { font-size: 1.2rem; }
.navbar.shrink .nav-inner { height: 56px; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: height var(--transition);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}
.nav-logo svg { width: 36px; height: 36px; transition: all var(--transition); }
.navbar.shrink .nav-logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.95rem;
  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(--primary);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: all var(--transition);
  border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  margin-top: 72px;
}
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  text-align: center;
  padding: 40px 24px;
}
.hero-slide.active { opacity: 1; }
.hero-slide .slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.slide-1 .slide-bg { background: linear-gradient(135deg, #1a3a5c 0%, #2C5C97 50%, #4A8FD4 100%); }
.slide-2 .slide-bg { background: linear-gradient(135deg, #1E426E 0%, #2C5C97 50%, #2266AA 100%); }
.slide-3 .slide-bg { background: linear-gradient(135deg, #2C5C97 0%, #3A74B8 50%, #66B2FF 100%); }
.hero-slide .slide-content { position: relative; z-index: 1; max-width: 800px; }
.hero-slide h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero-slide p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}
.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.hero-dots button.active {
  background: var(--white);
  border-color: var(--white);
}
.hero-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 2;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-arrows button {
  pointer-events: all;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-arrows button:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.7);
}

/* ===================================================
   INTRO / ABOUT SECTION (HOME)
   =================================================== */
.intro-text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-body);
}

/* ===================================================
   CORE STRENGTHS
   =================================================== */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.strength-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--neutral-dark);
}
.strength-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-light);
}
.strength-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--neutral);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.strength-icon svg { width: 32px; height: 32px; color: var(--primary); }
.strength-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.strength-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================================
   PRODUCT / CASE CARDS
   =================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--neutral-dark);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-img svg { width: 100%; height: 100%; }
.card-body { padding: 24px; }
.card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.card-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}
.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.spec-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--neutral);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
}

/* ===================================================
   BREADCRUMB
   =================================================== */
.breadcrumb {
  padding: 24px 0;
  margin-top: 72px;
  border-bottom: 1px solid var(--neutral-dark);
}
.breadcrumb a { color: var(--text-muted); font-size: 0.9rem; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-muted); margin: 0 8px; font-size: 0.9rem; }
.breadcrumb strong { color: var(--text-dark); font-size: 0.9rem; }

/* ===================================================
   PAGE HEADER
   =================================================== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 60px 0 48px;
  text-align: center;
  margin-top: 72px;
}
.page-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===================================================
   TAB FILTERS
   =================================================== */
.tab-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}
.tab-btn {
  padding: 10px 24px;
  border: 2px solid var(--neutral-dark);
  border-radius: 30px;
  background: var(--white);
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
}
.tab-btn:hover, .tab-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

/* ===================================================
   PRODUCT DETAIL MODAL
   =================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--neutral);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--neutral-dark); }
.modal-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.spec-table th, .spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--neutral-dark);
  font-size: 0.95rem;
}
.spec-table th {
  background: var(--neutral);
  font-weight: 600;
  color: var(--text-dark);
  width: 180px;
}

/* ===================================================
   TIMELINE
   =================================================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--secondary-light);
  border-radius: 3px;
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 32px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}
.timeline-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.timeline-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.timeline-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===================================================
   TEAM
   =================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-dark);
  transition: all var(--transition);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-avatar svg { width: 48px; height: 48px; fill: var(--white); }
.team-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.team-role {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}
.team-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================================
   CERTIFICATIONS
   =================================================== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cert-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--neutral-dark);
  transition: all var(--transition);
}
.cert-card:hover { box-shadow: var(--shadow-md); }
.cert-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: var(--neutral);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-icon svg { width: 36px; height: 36px; color: var(--primary); }
.cert-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.cert-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===================================================
   CASE CARDS (wider layout)
   =================================================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.case-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-dark);
  transition: all var(--transition);
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.case-header {
  padding: 28px;
  color: var(--white);
}
.case-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.case-industry {
  font-size: 0.85rem;
  opacity: 0.85;
  font-weight: 500;
}
.case-body { padding: 28px; }
.case-section { margin-bottom: 16px; }
.case-section-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.case-section p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}
.case-result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #E8F5E9;
  color: #2E7D32;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===================================================
   CONTACT
   =================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info-list { margin-bottom: 32px; }
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--neutral);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info-icon svg { width: 20px; height: 20px; color: var(--primary); }
.contact-info-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.contact-info-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.map-placeholder {
  width: 100%;
  height: 240px;
  background: var(--neutral);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  border: 2px dashed var(--neutral-dark);
}
.map-placeholder svg { width: 40px; height: 40px; margin-bottom: 8px; opacity: 0.4; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--neutral-dark);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: none;
  padding: 16px;
  background: #E8F5E9;
  color: #2E7D32;
  border-radius: var(--radius);
  font-weight: 600;
  margin-top: 16px;
}
.form-success.show { display: block; }

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h4 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); }
.footer-social a svg { width: 16px; height: 16px; fill: var(--white); }
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer ul a:hover { color: var(--white); }
.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ===================================================
   RESPONSIVE — Tablet (<= 1024px)
   =================================================== */
@media (max-width: 1024px) {
  .strengths-grid, .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.2rem; }
}

/* ===================================================
   RESPONSIVE — Mobile (<= 768px)
   =================================================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--neutral-dark);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { height: 480px; }
  .hero-slide h1 { font-size: 1.6rem; }
  .hero-slide p { font-size: 1rem; }
  .hero-arrows button { width: 36px; height: 36px; font-size: 1rem; }
  .section { padding: 56px 0; }
  .section-title { font-size: 1.7rem; }
  .strengths-grid, .cards-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr 1fr; }
  .page-header { padding: 48px 0 36px; }
  .page-header h1 { font-size: 1.8rem; }
  .modal-content { padding: 28px; }
  .spec-table th { width: 120px; }
}

/* ===================================================
   RESPONSIVE — Small Mobile (<= 480px)
   =================================================== */
@media (max-width: 480px) {
  .hero { height: 400px; }
  .hero-slide h1 { font-size: 1.3rem; }
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .section-title { font-size: 1.5rem; }
  .certs-grid { grid-template-columns: 1fr; }
  .tab-filters { gap: 8px; }
  .tab-btn { padding: 8px 16px; font-size: 0.85rem; }
}

/* ===================================================
   ANIMATIONS
   =================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
