/* Enhanced Engineering & Technology - Catalog Website */
:root {
  --bg: #f3f6f8;
  --surface: #ffffff;
  --ink: #1f2937;
  --muted: #5f6c7b;
  --brand: #1f8a4c;
  --brand-dark: #145c33;
  --accent: #0f3d6e;
  --line: #d8e0e6;
  --shadow: 0 8px 24px rgba(10, 37, 64, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f9fcff 0%, var(--bg) 100%);
}

a { color: inherit; text-decoration: none; }
.container { width: min(1140px, 92vw); margin: 0 auto; }

.topbar {
  background: #0b2238;
  color: #e9f2fa;
  font-size: 0.9rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  flex-wrap: wrap;
}

header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 280px;
}
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
}
.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
}
.brand-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: #1f3550;
  font-weight: 600;
}
.nav-links a.active,
.nav-links a:hover {
  background: #eaf4ef;
  color: var(--brand-dark);
}

.hero {
  margin-top: 1.2rem;
  padding: 3.2rem 0;
}
.hero-wrap {
  background:
    radial-gradient(circle at 20% 15%, rgba(43, 145, 82, 0.20), transparent 50%),
    radial-gradient(circle at 85% 0%, rgba(12, 67, 118, 0.17), transparent 42%),
    #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 2.5rem;
}
.hero h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.6rem, 2.8vw, 2.8rem);
  line-height: 1.15;
}
.hero p {
  color: var(--muted);
  margin: 0 0 1.4rem;
  font-size: 1.05rem;
  max-width: 760px;
}

.btns {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
}
.btn.primary {
  background: linear-gradient(135deg, var(--brand) 0%, #2da66a 100%);
  color: #fff;
}
.btn.secondary {
  border-color: #b9c7d2;
  color: #113252;
  background: #fff;
}
.btn:hover { transform: translateY(-1px); }

.section {
  padding: 1.2rem 0 2.2rem;
}
.section h2 {
  margin: 0 0 0.7rem;
  font-size: 1.45rem;
}
.section .subtitle {
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.category { grid-column: span 4; }
.category h3 { margin: 0 0 0.4rem; font-size: 1.02rem; }
.category p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.feature {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.2rem;
  align-items: center;
}
.feature .mock {
  min-height: 190px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, #0f3d6e 0%, #15588f 45%, #1f8a4c 100%);
  position: relative;
  overflow: hidden;
}
.feature .mock::after {
  content: "EET-RC-101";
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.9);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.kpi {
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.kpi strong { display: block; font-size: 1.35rem; }
.kpi span { color: var(--muted); font-size: 0.9rem; }

.footer {
  margin-top: 2rem;
  padding: 2rem 0;
  background: #0b2238;
  color: #dce8f4;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
}
.footer h4 { margin-top: 0; margin-bottom: 0.7rem; }
.footer p, .footer li {
  color: #bdd1e3;
  font-size: 0.95rem;
  line-height: 1.55;
}
.footer ul { list-style: none; padding: 0; margin: 0; }

/* Products */
.toolbar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.filter-btn {
  border: 1px solid #c6d2dc;
  background: #fff;
  color: #123657;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.filter-btn.active {
  background: #eaf4ef;
  border-color: #9dc7ad;
  color: var(--brand-dark);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-visual {
  min-height: 120px;
  background:
    radial-gradient(circle at 15% 20%, rgba(31, 138, 76, 0.4), transparent 32%),
    radial-gradient(circle at 85% 80%, rgba(12, 67, 118, 0.35), transparent 35%),
    linear-gradient(135deg, #e9eef3 0%, #dce6ee 100%);
  border-bottom: 1px solid var(--line);
}
.product-body { padding: 0.9rem; }
.product-body h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.product-meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 0.6rem; }
.badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0.2rem 0 0.7rem;
}
.badge {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #eef3f7;
  font-size: 0.77rem;
  color: #44586d;
  border: 1px solid #d4dee7;
}

/* Product detail */
.detail-head {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.spec-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}
.spec-list h3 {
  margin: 0 0 0.6rem;
}
.spec-list ul {
  margin: 0;
  padding-left: 1.1rem;
}
.spec-list li {
  margin-bottom: 0.45rem;
  color: #2d3c4c;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.spec-table th,
.spec-table td {
  border: 1px solid #dde5ec;
  padding: 0.6rem;
  text-align: left;
}
.spec-table th {
  background: #f5f9fc;
}

.notice {
  border-left: 4px solid var(--brand);
  background: #eef8f2;
  color: #24472f;
  padding: 0.8rem;
  border-radius: 8px;
  margin-top: 0.9rem;
}

/* responsive */
@media (max-width: 1024px) {
  .category { grid-column: span 6; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .topbar .container { justify-content: center; }
  .nav { align-items: flex-start; flex-direction: column; }
  .brand { min-width: 0; }
  .category { grid-column: span 12; }
  .products-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-wrap { padding: 1.2rem; }
}


/* Visual guide upgrades */
.guide-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.1rem;
  align-items: center;
}
.hero-machine {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #d5e0ea;
  box-shadow: var(--shadow);
  background: #fff;
}
.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.step-card h3 { margin-top: 0; margin-bottom: 0.4rem; }
.step-card p { margin: 0; color: var(--muted); }
.featured-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.featured-strip img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d5e0ea;
  background: #fff;
  box-shadow: var(--shadow);
}
.product-photo {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: #f7fafc;
}
.guide-note {
  margin: 0 0 0.7rem;
  color: #465769;
  font-size: 0.9rem;
}
.detail-guide {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 1rem;
  align-items: center;
}
.detail-photo {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d4dde6;
  box-shadow: var(--shadow);
}
.source-list {
  margin: 0;
  padding-left: 1.1rem;
}
.source-list li {
  margin-bottom: 0.45rem;
  color: #34485d;
}
.source-list a { color: #0f3d6e; text-decoration: underline; }

@media (max-width: 900px) {
  .guide-hero,
  .detail-guide { grid-template-columns: 1fr; }
  .guide-steps { grid-template-columns: 1fr; }
  .featured-strip { grid-template-columns: repeat(2, 1fr); }
}
