@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@1,600;1,700&display=swap');

:root {
  --primary-orange: #FF5500;
  --primary-hover: #E04B00;
  --dark-bg: #0D1115;
  --dark-surface: #141A20;
  --dark-card: #1B222A;
  --dark-border: #26313C;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #F8FAFC;
  --gray-bg: #F4F6F8;
  --border-color: #E2E8F0;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container-max: 1280px;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: #FFFFFF;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}

/* 1. TOPBAR */
.topbar {
  background-color: #0B0E11;
  color: #94A3B8;
  font-size: 13px;
  border-bottom: 1px solid #1A2027;
}

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

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar a:hover {
  color: var(--primary-orange);
}

.divider {
  color: #334155;
}

/* 2. MAIN HEADER */
.main-header {
  padding: 16px 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon-wrap {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.logo-text h1 {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.05;
  color: #0F172A;
}

.logo-text h1 span {
  color: var(--primary-orange);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 1px;
}

.logo-text p {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 1.2px;
  margin-top: 2px;
}

/* SEARCH BAR */
.header-search {
  flex: 1;
  max-width: 620px;
}

.search-form {
  display: flex;
  position: relative;
}

.search-form input {
  width: 100%;
  height: 46px;
  border: 2px solid #CBD5E1;
  border-radius: 6px 0 0 6px;
  padding: 0 16px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s;
}

.search-form input:focus {
  border-color: var(--primary-orange);
}

.search-form button {
  width: 52px;
  height: 46px;
  background-color: var(--primary-orange);
  color: #FFF;
  border: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background-color 0.2s;
}

.search-form button:hover {
  background-color: var(--primary-hover);
}

/* HEADER ACTIONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.action-btn:hover {
  color: var(--primary-orange);
}

.action-icon {
  font-size: 19px;
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--primary-orange);
  color: #FFF;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 99px;
  border: 2px solid #FFF;
}

/* 3. NAVIGATION */
.navbar {
  background: #FFF;
  border-bottom: 2px solid #F1F5F9;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
  height: 46px;
}

.nav-links li a {
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  padding: 12px 0;
}

.nav-links li.active a,
.nav-links li a:hover {
  color: var(--primary-orange);
}

.nav-links li.active a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-orange);
}

/* 4. HERO SECTION - REDESIGNED EXACTLY LIKE MOCKUP */
.hero-section {
  position: relative;
  background-color: #0A0D11;
  color: #FFF;
  overflow: hidden;
  border-bottom: 3px solid var(--primary-orange);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 520px;
  align-items: center;
}

.hero-left {
  padding: 60px 30px 60px 0;
  z-index: 2;
}

.hero-subhead {
  color: var(--primary-orange);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 46px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.hero-desc {
  font-size: 15.5px;
  color: #CBD5E1;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 640px;
}

/* VALUE PILLS 2x2 */
.value-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 36px;
  max-width: 620px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: 6px;
}

.badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: rgba(255, 85, 0, 0.15);
  color: var(--primary-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.badge-text h4 {
  font-size: 12.5px;
  font-weight: 800;
  color: #FFF;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-text p {
  font-size: 11.5px;
  color: #94A3B8;
  margin-top: 1px;
}

/* HERO BUTTONS */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  padding: 13px 24px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary-orange);
  color: #FFF;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(255, 85, 0, 0.45);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFF;
}

.btn-outline-light:hover {
  border-color: #FFF;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* HERO RIGHT VISUAL (CNC Machining Spindle with Sparks) */
.hero-right {
  position: relative;
  height: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-right-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(to right, transparent 0%, black 25%, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%, black 100%);
}

.hero-signature {
  position: absolute;
  right: 28px;
  bottom: 24px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 38px;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  pointer-events: none;
  z-index: 3;
}

/* 5. BRANDS BAR - GRAPHICAL LOGOS */
.brands-section {
  padding: 22px 0;
  background: #FFF;
  border-bottom: 1px solid var(--border-color);
}

.brands-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brands-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: #0F172A;
  border-left: 3px solid var(--primary-orange);
  padding-left: 10px;
  white-space: nowrap;
}

.brands-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  padding: 6px 0;
}

/* GRAPHIC BRAND LOGO BADGES */
.brand-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 4px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
}

.brand-logo-pill:hover {
  border-color: var(--primary-orange);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.brand-pill-osg {
  background: #004b97;
  color: #FFF;
  border-color: #004b97;
  border-radius: 14px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.5px;
}

.brand-pill-yamawa {
  color: #D9001B;
  font-weight: 900;
}
.brand-pill-yamawa span {
  font-size: 9px;
  color: #475569;
  font-weight: 600;
  display: block;
}

.brand-pill-zcc {
  color: #111;
  font-weight: 900;
}
.brand-pill-zcc .diamond {
  color: #D9001B;
}

.brand-pill-kyocera {
  color: #D31145;
  font-weight: 900;
}

.brand-pill-sumitomo {
  color: #003366;
  font-weight: 800;
}

.brand-pill-tungaloy {
  color: #D9001B;
  font-weight: 900;
}

.brand-pill-mitsubishi {
  color: #C00;
  font-weight: 800;
}

.brand-pill-nachi {
  color: #C00;
  font-style: italic;
  font-weight: 900;
}

.brand-pill-taegutec {
  color: #004080;
  font-weight: 900;
}

/* SECTION TITLES */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-top: 48px;
}

.section-title {
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--primary-orange);
  display: inline-block;
  border-radius: 2px;
}

.view-all-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-orange);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 6. 8 PRODUCT CATEGORY CARDS */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.category-card {
  background: #FFF;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.category-card:hover {
  border-color: var(--primary-orange);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.category-img {
  height: 140px;
  background: #1B2127;
  overflow: hidden;
  position: relative;
}

.category-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover .category-img img {
  transform: scale(1.08);
}

.category-header {
  background: #1E252B;
  color: #FFF;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-header h3 {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.category-arrow {
  background: var(--primary-orange);
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.category-sublist {
  padding: 14px;
  list-style: none;
}

.category-sublist li {
  font-size: 13px;
  color: #475569;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-sublist li::before {
  content: '•';
  color: #94A3B8;
  font-size: 14px;
}

/* 7. FEATURED PRODUCTS */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-btn {
  padding: 8px 16px;
  background: #F1F5F9;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary-orange);
  color: #FFF;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 50px;
}

.product-card {
  background: #FFF;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}

.product-card:hover {
  border-color: var(--primary-orange);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.product-brand-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 3px;
  margin-bottom: 8px;
  width: fit-content;
}

.tag-osg { background: #004b97; color: #FFF; }
.tag-kyocera { background: #D31145; color: #FFF; }
.tag-zcc { background: #111; color: #FF5500; border: 1px solid #FF5500; }
.tag-yamawa { background: #D9001B; color: #FFF; }
.tag-mitutoyo { background: #C00; color: #FFF; }
.tag-tungaloy { background: #1E293B; color: #FFF; border-left: 3px solid #D9001B; }

.product-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.product-thumb img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.product-code {
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 4px;
}

.product-title {
  font-size: 12px;
  color: #64748B;
  height: 36px;
  overflow: hidden;
  margin-bottom: 12px;
  line-height: 1.4;
}

.product-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-detail {
  background: var(--primary-orange);
  color: #FFF;
  padding: 8px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
}

.btn-detail:hover {
  background: var(--primary-hover);
}

.btn-quote {
  background: transparent;
  color: #475569;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 0;
  cursor: pointer;
}

.btn-quote:hover {
  color: var(--primary-orange);
}

/* 8. MATERIAL SOLUTIONS */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 60px;
}

.material-card {
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  height: 220px;
  background: #111;
  cursor: pointer;
}

.material-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: all 0.3s;
}

.material-card:hover img {
  opacity: 0.85;
  transform: scale(1.06);
}

.material-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.92), transparent);
  color: #FFF;
}

.material-info h4 {
  font-size: 15px;
  font-weight: 800;
}

.material-info p {
  font-size: 11px;
  color: #CBD5E1;
}

/* 9. TRUST BANNER */
.trust-banner {
  background: var(--primary-orange);
  color: #FFF;
  padding: 34px 0;
}

.trust-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.trust-heading h3 {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trust-pillars {
  display: flex;
  align-items: center;
  gap: 40px;
}

.pillar-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pillar-item i {
  font-size: 26px;
}

.pillar-item h5 {
  font-size: 14px;
  font-weight: 800;
}

.pillar-item p {
  font-size: 12px;
  opacity: 0.85;
}

/* 10. COMPREHENSIVE FOOTER */
.site-footer {
  background-color: #0E1216;
  color: #94A3B8;
  padding: 60px 0 0 0;
  font-size: 13.5px;
  border-top: 1px solid #1F2731;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid #1E2631;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--primary-orange);
}

.footer-company-desc {
  line-height: 1.6;
  margin-bottom: 16px;
  color: #94A3B8;
}

.footer-contact-info {
  list-style: none;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.footer-contact-info li i {
  color: var(--primary-orange);
  margin-top: 4px;
  flex-shrink: 0;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links li a {
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links li a:hover {
  color: var(--primary-orange);
  padding-left: 4px;
}

.footer-newsletter p {
  line-height: 1.5;
  margin-bottom: 14px;
}

.newsletter-form {
  display: flex;
  margin-bottom: 18px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 12px;
  background: #1A212A;
  border: 1px solid #2B3542;
  border-radius: 4px 0 0 4px;
  color: #FFF;
  font-size: 13px;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--primary-orange);
}

.newsletter-form button {
  background: var(--primary-orange);
  color: #FFF;
  border: none;
  padding: 0 16px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.2s;
}

.newsletter-form button:hover {
  background: var(--primary-hover);
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: #1A212A;
  border: 1px solid #2B3542;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}

.social-btn:hover {
  background: var(--primary-orange);
  color: #FFF;
  border-color: var(--primary-orange);
  transform: translateY(-2px);
}

/* FOOTER BOTTOM BAR */
.footer-bottom {
  padding: 20px 0;
  font-size: 12.5px;
  color: #64748B;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* QUOTE MODAL */
.quote-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.quote-modal.open {
  display: flex;
}

.modal-content {
  background: #FFF;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
}

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

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #64748B;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { min-height: 320px; }
  .hero-right-img { mask-image: none; -webkit-mask-image: none; border-radius: 8px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .materials-grid { grid-template-columns: repeat(3, 1fr); }
  .value-badges { grid-template-columns: repeat(2, 1fr); }
  .trust-banner .container { flex-direction: column; align-items: flex-start; }
  .trust-pillars { flex-direction: column; gap: 16px; }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .main-header .container { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-title { font-size: 32px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .materials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; gap: 10px; text-align: center; }
}
