/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: #fff;
  color: #111;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
p { line-height: 1.7; }

/* ===== HEADER ===== */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #000;
  border-bottom: 1px solid #222;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 32px;
}
.header-logo img { height: 36px; width: auto; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 24px;
}
.header-nav a {
  color: #ccc;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.header-nav a:hover, .header-nav a.active { color: #fff; background: #1a1a1a; }

/* Search */
.header-search {
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
}
.search-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  padding: 8px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.search-toggle-btn:hover { color: #fff; }
.search-toggle-btn svg { width: 20px; height: 20px; }
.search-box {
  position: absolute;
  top: 50%;
  right: 36px;
  transform: translateY(-50%);
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 0;
  opacity: 0;
  transition: width 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.search-box.open {
  width: 280px;
  opacity: 1;
  pointer-events: all;
}
.search-box input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.9rem;
  padding: 10px 14px;
  width: 100%;
  font-family: inherit;
}
.search-box input::placeholder { color: #666; }
#search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 36px;
  width: 320px;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  max-height: 320px;
  overflow-y: auto;
  display: none;
  z-index: 2000;
}
#search-results-dropdown.visible { display: block; }
.search-result-item {
  padding: 12px 16px;
  border-bottom: 1px solid #222;
  cursor: pointer;
  transition: background 0.15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #1a1a1a; }
.search-result-item .result-name { color: #fff; font-size: 0.9rem; font-weight: 600; }
.search-result-item .result-cat { color: #888; font-size: 0.75rem; margin-top: 2px; }
.search-no-results { padding: 16px; color: #666; font-size: 0.9rem; text-align: center; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; transition: all 0.3s; }
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: #000;
  border-bottom: 1px solid #222;
  padding: 16px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid #1a1a1a;
  transition: color 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: #fff; }

/* ===== HERO ===== */
#hero {
  background: #000;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.04;
  background-image: repeating-linear-gradient(
    0deg, #fff 0px, #fff 1px, transparent 1px, transparent 60px
  ), repeating-linear-gradient(
    90deg, #fff 0px, #fff 1px, transparent 1px, transparent 60px
  );
}
.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #888;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 32px;
  font-weight: 600;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: #888;
}
.hero-title { color: #fff; margin-bottom: 28px; }
.hero-title .accent { color: #fff; position: relative; }
.hero-title .accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #fff;
}
.hero-subtitle {
  color: #888;
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.7;
}
.hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: #fff;
  color: #000;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  border: 2px solid #fff;
  cursor: pointer;
  display: inline-block;
}
.btn-primary:hover { background: transparent; color: #fff; }
.btn-secondary {
  background: transparent;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 4px;
  border: 2px solid #333;
  cursor: pointer;
  display: inline-block;
  transition: border-color 0.2s;
}
.btn-secondary:hover { border-color: #fff; }
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid #1a1a1a;
  flex-wrap: wrap;
}
.stat-item { }
.stat-number { font-size: 2rem; font-weight: 900; color: #fff; letter-spacing: -0.03em; }
.stat-label { font-size: 0.75rem; color: #666; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }

/* ===== SECTION BASE ===== */
section { padding: 100px 40px; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.5;
}
.section-label::before { content: ''; display: block; width: 24px; height: 1px; background: currentColor; }

/* ===== ABOUT ===== */
#about { background: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 60px;
}
.about-image-block {
  position: relative;
}
.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: #f0f0f0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-image-placeholder svg { width: 64px; height: 64px; color: #ccc; }
.about-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: #000;
  color: #fff;
  padding: 28px;
  width: 160px;
  text-align: center;
}
.about-image-badge .badge-num {
  font-size: 2rem;
  font-weight: 900;
  display: block;
  letter-spacing: -0.03em;
}
.about-image-badge .badge-text {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 4px;
}
.about-text h2 { margin-bottom: 28px; }
.about-text p { color: #555; margin-bottom: 20px; }
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.value-card {
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 4px;
}
.value-card h4 { margin-bottom: 8px; }
.value-card p { font-size: 0.85rem; color: #777; margin: 0; }

/* ===== PRODUCTS ===== */
#products { background: #000; color: #fff; }
#products .section-label { color: #fff; }
#products h2 { color: #fff; margin-bottom: 16px; }
.products-intro { color: #888; max-width: 560px; margin-bottom: 56px; }

/* Category tabs */
.cat-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid #1a1a1a;
}
.cat-tab {
  background: none;
  border: 1px solid #2a2a2a;
  color: #888;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.cat-tab:hover { border-color: #555; color: #fff; }
.cat-tab.active { background: #fff; color: #000; border-color: #fff; }

/* Subcategory nav */
.sub-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.sub-nav-item {
  background: none;
  border: none;
  color: #666;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.sub-nav-item:hover { color: #fff; background: #1a1a1a; }
.sub-nav-item.active { color: #fff; background: #1a1a1a; }

/* Sub group header */
.sub-group-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  margin-top: 8px;
}
.sub-group-header h3 { color: #fff; }
.sub-group-header span {
  background: #1a1a1a;
  color: #888;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

/* Product grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
}
.product-card {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
  position: relative;
}
.product-card:hover { border-color: #444; background: #111; }
.product-card:hover .product-img-placeholder { background: #1a1a1a; }
.product-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}
.product-img-placeholder svg { width: 48px; height: 48px; color: #333; }
.product-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
}
.product-card-body { padding: 20px 20px 24px; }
.product-line-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 8px;
}
.product-card-body h3 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; }
.product-card-body p { color: #777; font-size: 0.83rem; line-height: 1.6; }
.product-card-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}
.product-card:hover .product-card-arrow { opacity: 1; background: #fff; }
.product-card-arrow svg { width: 14px; height: 14px; color: #000; }

/* Category sections */
.cat-section { display: none; }
.cat-section.active { display: block; }

/* Sub sections inside a category */
.sub-section { display: none; }
.sub-section.active { display: block; }

/* ===== CONTACT ===== */
#contact { background: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 60px;
}
.contact-info h2 { margin-bottom: 24px; }
.contact-info p { color: #555; margin-bottom: 40px; }
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-detail-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: #f5f5f5;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 20px; height: 20px; color: #000; }
.contact-detail-text h4 { margin-bottom: 4px; font-size: 0.75rem; color: #aaa; }
.contact-detail-text p { font-size: 0.95rem; color: #111; margin: 0; }
.contact-form-wrap {
  background: #000;
  padding: 48px;
  border-radius: 4px;
}
.contact-form-wrap h3 { color: #fff; margin-bottom: 32px; font-size: 1.3rem; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: #111;
  border: 1px solid #222;
  border-radius: 4px;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: #555; }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select { cursor: pointer; }
.form-group select option { background: #111; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit {
  width: 100%;
  background: #fff;
  color: #000;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
  margin-top: 8px;
}
.btn-submit:hover { background: #e0e0e0; }

/* ===== FOOTER ===== */
footer {
  background: #000;
  border-top: 1px solid #1a1a1a;
  padding: 48px 40px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo img { height: 28px; opacity: 0.8; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a {
  font-size: 0.78rem;
  color: #666;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-nav a:hover { color: #fff; }
.footer-copy { font-size: 0.75rem; color: #444; }

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

/* ===== MEGA DROPDOWN ===== */
.header-nav > .nav-products {
  position: relative;
}
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 32px 40px;
  display: none;
  gap: 40px;
  min-width: 600px;
  z-index: 1001;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.mega-dropdown.open {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.mega-col h4 {
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}
.mega-col a {
  display: block;
  color: #999;
  font-size: 0.85rem;
  padding: 6px 0;
  transition: color 0.2s;
}
.mega-col a:hover {
  color: #fff;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 24px;
}
.breadcrumb a {
  color: #888;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: #111;
}
.breadcrumb .sep {
  color: #ccc;
}
.breadcrumb .current {
  color: #111;
  font-weight: 600;
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.product-detail-img img {
  width: 100%;
  border-radius: 8px;
  background: #f5f5f5;
}
.product-detail-info .product-line-badge {
  margin-bottom: 8px;
}
.product-detail-info h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.product-detail-info .product-desc {
  color: #555;
  margin-bottom: 32px;
  line-height: 1.8;
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}
.specs-table tr {
  border-bottom: 1px solid #eee;
}
.specs-table td {
  padding: 10px 0;
  font-size: 0.9rem;
}
.specs-table td:first-child {
  color: #888;
  width: 40%;
}
.specs-table td:last-child {
  font-weight: 600;
}
.btn-quote {
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.btn-quote:hover {
  background: #333;
}

/* ===== RELATED PRODUCTS ===== */
.related-products {
  margin-top: 80px;
}
.related-products h3 {
  margin-bottom: 24px;
}

/* ===== FEATURED PRODUCTS (HOMEPAGE) ===== */
.featured-section {
  padding: 80px 40px;
}
.featured-category {
  margin-bottom: 64px;
}
.featured-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.featured-category-header h3 {
  font-size: 1.3rem;
}
.featured-category-header a {
  font-size: 0.85rem;
  color: #888;
  font-weight: 500;
  transition: color 0.2s;
}
.featured-category-header a:hover {
  color: #111;
}

/* ===== SKELETON / COMING SOON ===== */
.coming-soon {
  text-align: center;
  padding: 120px 40px;
  color: #888;
}
.coming-soon h2 {
  color: #111;
  margin-bottom: 16px;
}

/* ===== MOBILE PRODUCTS ACCORDION ===== */
.mobile-products-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  padding: 12px 0;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.mobile-products-toggle.expanded {
  color: #ccc;
}
.mobile-products-submenu {
  display: none;
  flex-direction: column;
  padding-left: 16px;
}
.mobile-products-submenu.open {
  display: flex;
}
.mobile-products-submenu strong {
  color: #888;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 12px;
  margin-bottom: 4px;
}
.mobile-products-submenu a {
  padding: 8px 0;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  #site-header { padding: 0 20px; }
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .header-search { margin-left: 0; }
  section { padding: 72px 20px; }
  #hero { padding: 100px 20px 60px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image-badge { bottom: -10px; right: -10px; width: 130px; padding: 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  footer { padding: 40px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .contact-form-wrap { padding: 32px 24px; }
}
@media (max-width: 768px) {
  .mega-dropdown {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    transform: none;
    min-width: 100%;
    border-radius: 0;
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .product-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .featured-section {
    padding: 60px 20px;
  }
}
@media (max-width: 600px) {
  .hero-stats { gap: 28px; }
  .about-values { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .product-detail-info h1 {
    font-size: 1.5rem;
  }
}
@media (max-width: 440px) {
  .products-grid { grid-template-columns: 1fr; }
}
