
:root {
  --bg: #f4f7fa;
  --panel: #ffffff;
  --ink: #102033;
  --muted: #5d6b7c;
  --brand: #0f3550;
  --brand-2: #1f7aa8;
  --line: #d9e2ea;
  --soft: #eaf1f6;
  --shadow: 0 14px 34px rgba(12, 34, 54, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

a { color: #0e6fa6; text-decoration: none; }
a:hover { text-decoration: underline; }

.header {
  background: var(--brand);
  color: #fff;
  border-bottom: 4px solid var(--brand-2);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: .2px;
}

.brand span {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  opacity: .88;
  margin-top: 2px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.links a {
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
}

.main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 24px 70px;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 28px;
  align-items: stretch;
}

.hero-card, .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 44px;
}

.hero h1 {
  font-size: clamp(2rem, 3.6vw, 4rem);
  line-height: 1.04;
  margin: 0 0 18px;
}

.lead {
  font-size: 1.16rem;
  color: var(--muted);
  max-width: 760px;
}

.hero-side {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge {
  display: inline-block;
  background: var(--soft);
  color: var(--brand);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .86rem;
  margin-bottom: 14px;
}

.cta-row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-block;
  background: var(--brand-2);
  color: #fff;
  padding: 11px 16px;
  border-radius: 10px;
  font-weight: 800;
  border: 0;
}

.button.secondary {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--line);
}

.section {
  margin-top: 44px;
}

.section h2 {
  font-size: 2rem;
  margin: 0 0 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  padding: 24px;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.card p { color: var(--muted); }

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.equipment-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--brand-2);
  color: #fff;
  border-color: var(--brand-2);
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.equipment-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.equipment-image {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #f7fafc;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.equipment-body {
  padding: 22px;
}

.equipment-title {
  margin: 0 0 8px;
  font-size: 1.24rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--soft);
  color: var(--brand);
  font-weight: 700;
  font-size: .82rem;
}

.status-sold {
  background: #eee;
  color: #555;
}

.equipment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.photo-btn, .inquire-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
  font-weight: 800;
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
}

.inquire-btn {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.vendor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-box {
  max-width: 760px;
}

.footer {
  background: #0b1822;
  color: #fff;
  padding: 28px 24px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.audio-control button {
  border: 0;
  border-radius: 10px;
  padding: 9px 13px;
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 12, 18, .78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 24px;
}

.modal.show { display: flex; }

.modal-panel {
  width: min(980px, 96vw);
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.modal-header h3 { margin: 0; }

.close-modal {
  border: 0;
  background: var(--brand);
  color: white;
  border-radius: 9px;
  padding: 8px 11px;
  cursor: pointer;
}

.modal-main-img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.thumbs img {
  width: 88px;
  height: 62px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  background: #f7fafc;
}

.notice {
  background: #fff8e8;
  border: 1px solid #ead9a6;
  color: #58430c;
  padding: 16px;
  border-radius: 12px;
}

@media (max-width: 820px) {
  .nav, .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .grid, .service-list, .vendor-grid, .equipment-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 30px;
  }

  .equipment-image {
    height: 230px;
  }
}
