/* ============ MOMA Fashion — B2B Prototype ============ */
:root {
  --ink: #161a22;
  --navy: #1d2a3a;
  --paper: #f5f2ec;
  --paper-2: #ece7de;
  --white: #ffffff;
  --muted: #66707c;
  --line: #ddd6ca;
  --accent: #a63a2b;
  --accent-dark: #862d20;
  --radius: 6px;
  --shadow: 0 6px 24px rgba(22, 26, 34, 0.1);
  --font: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 15px;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 120px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  white-space: nowrap;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover {
  background: var(--accent-dark);
}
.btn-ghost {
  border-color: var(--white);
  color: var(--white);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.text-link {
  color: var(--accent);
  font-weight: 600;
}
.text-link:hover {
  text-decoration: underline;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  --header-text: var(--ink);
  --header-shadow: none;
  background: #ffffff;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
body:not(.home) {
  padding-top: 76px;
}
/* Home: transparent header with white text; scrolled: white header with dark text */
body.home .site-header {
  --header-text: #ffffff;
  --header-shadow: 0 1px 8px rgba(15, 20, 28, 0.45);
  background: transparent;
}
body.home .site-header.scrolled {
  --header-text: var(--ink);
  --header-shadow: none;
  background: #ffffff;
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(22, 26, 34, 0.08);
}
/* While the Products mega panel is open: white header with dark text */
body.home .site-header.mega-open {
  --header-text: var(--ink);
  --header-shadow: none;
  background: #ffffff;
  border-bottom-color: var(--line);
}
body.home .site-header.mega-open .logo span {
  color: var(--muted);
}
.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--header-text);
  text-shadow: var(--header-shadow);
}
.logo span {
  font-weight: 400;
  color: var(--muted);
  font-size: 16px;
  letter-spacing: 0.12em;
}
body.home .site-header:not(.scrolled) .logo span {
  color: rgba(255, 255, 255, 0.78);
}
.nav-group {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
}
.nav-right {
  justify-content: flex-end;
  gap: 22px;
}
.nav-group a {
  font-size: 18px;
  font-weight: 500;
  color: var(--header-text);
  text-shadow: var(--header-shadow);
  padding: 10px 4px;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}
.nav-group a:hover,
.nav-group a.active {
  color: var(--accent);
  text-shadow: none;
}
.nav-cta {
  padding: 11px 20px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--header-text);
  margin: 5px 0;
}

/* Dropdown */
.has-dropdown {
  position: relative;
}
.caret {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 7px;
}
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  display: none;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 8px;
}
.dropdown a {
  font-size: 15px;
  color: var(--ink);
  text-shadow: none;
  padding: 11px 14px;
  border-radius: 6px;
}
.dropdown a:hover {
  background: var(--paper);
  color: var(--accent);
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  display: flex;
}

/* ---------- Products mega menu ---------- */
.has-mega {
  position: static;
}
.mega-menu {
  position: absolute;
  top: 76px;
  left: 100px;
  right: 100px;
  height: 80vh;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(22, 26, 34, 0.18);
  display: none;
  overflow: hidden;
  z-index: 99;
}
.has-mega:hover .mega-menu,
.has-mega.open .mega-menu {
  display: block;
}
.mega-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  height: 100%;
}
.mega-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 48px 56px;
}
.mega-links a {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  padding: 12px 10px;
  border-radius: 8px;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    padding-left 0.18s ease;
}
.mega-links a:hover {
  color: var(--accent);
  background: var(--paper);
  padding-left: 22px;
}
.mega-visual {
  position: relative;
  overflow: hidden;
}
.mega-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile panel */
.mobile-panel {
  display: none;
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  background: #ffffff;
  flex-direction: column;
  padding: 8px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.mobile-panel.open {
  display: flex;
}
.mobile-panel a {
  color: var(--ink);
  font-size: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background-color: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
.eyebrow {
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 1px 8px rgba(15, 20, 28, 0.4);
}
.hero h1,
.page-hero h1 {
  font-size: clamp(34px, 7.5vw, 96px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 18px rgba(15, 20, 28, 0.35);
}
.hero h1 {
  white-space: nowrap;
  transition: opacity 0.25s ease;
}
.hero h1.outline {
  display: inline-block;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px var(--white);
  text-shadow: none;
  filter: drop-shadow(0 1px 2px rgba(15, 20, 28, 0.5));
}
.hero h1.outline:hover {
  opacity: 0.3;
}
.hero h1.outline .solid-line {
  color: var(--white);
  -webkit-text-fill-color: var(--white);
  -webkit-text-stroke: 0;
}
.lead {
  margin: 22px auto 0;
  font-size: 19px;
  color: var(--white);
  max-width: 620px;
  text-shadow: 0 1px 12px rgba(15, 20, 28, 0.3);
}
.hero .btn-row {
  justify-content: center;
}

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0;
}
.page-hero p {
  color: var(--paper-2);
  max-width: 620px;
  margin-top: 12px;
}

/* ---------- Sections ---------- */
.section {
  padding: 72px 0;
}
.section-tint {
  background: var(--paper);
}
.section-head {
  margin-bottom: 36px;
}
.section-head h2,
.two-col h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}
.section-head p {
  color: var(--muted);
  max-width: 620px;
}
.row-between {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: block;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  padding: 20px;
}
.card-body h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.card-body p {
  color: var(--muted);
  font-size: 14px;
}
.tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  border-top: 2px solid var(--line);
  padding-top: 20px;
}
.step-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.step h3 {
  font-size: 16px;
  margin: 8px 0;
}
.step p {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Stats ---------- */
.stats-band {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-size: 32px;
  font-weight: 800;
}
.stat-label {
  color: var(--paper-2);
  font-size: 14px;
  margin-top: 4px;
}
.stats-inline {
  padding: 0;
}

/* ---------- Cert ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.cert-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.cert-card img {
  max-height: 160px;
  object-fit: contain;
  margin-bottom: 16px;
}
.cert-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.cert-card p {
  color: var(--muted);
  font-size: 14px;
}
.placeholder-cert {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper);
}

/* ---------- Photo grid ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.photo-grid img {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ---------- CTA ---------- */
.cta-band {
  background: var(--ink);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}
.cta-inner h2 {
  font-size: 30px;
  margin-bottom: 12px;
}
.cta-inner p {
  color: var(--paper-2);
  margin-bottom: 24px;
}

/* ---------- Detail page ---------- */
.detail-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}
.detail-main {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.detail-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.detail-thumbs img {
  border-radius: var(--radius);
  aspect-ratio: 1/1;
  object-fit: cover;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.spec-table td,
.spec-table th {
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  font-size: 14px;
  text-align: left;
}
.spec-table td:first-child {
  width: 38%;
  color: var(--muted);
  font-weight: 600;
}
.equip-table th {
  color: var(--ink);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-icon {
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a p {
  color: var(--muted);
  padding-bottom: 20px;
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
}
.contact-info h2 {
  margin-bottom: 16px;
}
.contact-info p {
  margin-bottom: 12px;
  color: var(--ink);
}
.map-placeholder {
  margin-top: 20px;
  background: var(--paper-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}
.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.inquiry-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.inquiry-form input,
.inquiry-form textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 14px;
  background: var(--white);
}
.inquiry-form input:focus,
.inquiry-form textarea:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}
.file-label input {
  padding: 10px;
}

/* ---------- Misc ---------- */
.note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.two-col p {
  margin-bottom: 14px;
}
.slogan {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper-2);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.4fr;
  gap: 32px;
  padding-bottom: 36px;
}
.footer-col h4 {
  color: var(--white);
  margin-bottom: 14px;
  font-size: 15px;
}
.footer-col p,
.footer-col a {
  font-size: 14px;
  color: var(--paper-2);
}
.footer-col a:hover {
  color: var(--white);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-logo {
  color: var(--white);
  margin-bottom: 12px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 24px;
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .container {
    padding: 0 60px;
  }
  .mega-menu {
    left: 40px;
    right: 40px;
  }
}
@media (max-width: 992px) {
  .container {
    padding: 0 40px;
  }
  .card-grid,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-layout,
  .contact-layout,
  .two-col {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-group {
    gap: 14px;
  }
  .nav-group a {
    font-size: 15px;
  }
  .mega-menu {
    left: 24px;
    right: 24px;
    height: 72vh;
  }
  .mega-links {
    padding: 32px;
  }
  .mega-links a {
    font-size: 18px;
  }
}
@media (max-width: 720px) {
  .container {
    padding: 0 20px;
  }
  .nav-group {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-cta {
    display: none;
  }
  .mega-menu {
    display: none !important;
  }
  .hero h1 {
    font-size: 24px;
  }
  .card-grid,
  .grid-4,
  .photo-grid,
  .cert-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 48px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
