/* Maplays International — static site styles */
:root {
  --brand: #ffb800;
  --brand-dark: #e0a000;
  --ink: #1a1a1a;
  --charcoal: #333333;
  --muted: #5c6670;
  --line: #e4e8ec;
  --surface: #f5f7f9;
  --white: #ffffff;
  --navy: #0f2740;
  --navy-2: #163554;
  --shadow: 0 12px 40px rgba(15, 39, 64, 0.08);
  --radius: 12px;
  --max: 1120px;
  --header-h: 72px;
  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.05rem;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.6rem;
  font-weight: 650;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 36px;
  width: auto;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.25s ease;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  width: 100%;
}

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: var(--brand);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-cta:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.header-china {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--charcoal);
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.header-china:hover {
  border-color: var(--brand-dark);
  color: var(--ink);
  background: rgba(255, 184, 0, 0.12);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 6px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: var(--ink);
}

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

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(10, 24, 40, 0.88) 0%, rgba(15, 39, 64, 0.72) 48%, rgba(15, 39, 64, 0.45) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(255, 184, 0, 0.22), transparent 50%),
    linear-gradient(160deg, #0a1828 0%, #163554 55%, #1c4668 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 40%, black 20%, transparent 70%);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: max(2rem, calc((100% - var(--max)) / 2));
  pointer-events: none;
}

.hero-media img {
  padding-left: 40px;
  width: min(46vw, 520px);
  border-radius: 20px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(4%);
  animation: floatIn 1s ease both;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 5rem;
  max-width: 640px;
  animation: riseIn 0.85s ease both;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.brand-mark span {
  color: var(--brand);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 550;
  max-width: 18ch;
  margin-bottom: 1rem;
}

.hero .lede {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  max-width: 38ch;
  margin-bottom: 1.75rem;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translate(24px, 8%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(0, 4%) scale(1);
  }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-head .eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 0.6rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.section-alt {
  background: var(--surface);
}

/* Homepage product video */
.section-video {
  background: var(--navy);
  color: var(--white);
}

.section-video .section-head .eyebrow {
  color: var(--brand);
}

.section-video .section-head h2 {
  color: var(--white);
}

.section-video .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.video-frame {
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
  display: block;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.product-tile {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.product-tile:hover {
  border-color: rgba(255, 184, 0, 0.55);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.product-tile .media {
  aspect-ratio: 5 / 4;
  background: #eef1f4;
  display: block;
  overflow: hidden;
  padding: 0;
}

.product-tile .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.product-tile:hover .media img {
  transform: scale(1.03);
}

.product-tile .body {
  padding: 1.25rem 1.4rem 1.5rem;
}

.product-tile h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.product-tile p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 0.9rem;
}

.product-tile .link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.product-tile .link span {
  color: var(--brand-dark);
  margin-left: 0.25rem;
}

/* Advantages */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.adv-item {
  padding: 0.25rem 0;
}

.adv-item .num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.adv-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.adv-item p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

/* Split about */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.split .panel {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: 2.25rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-image:
    radial-gradient(circle at 90% 10%, rgba(255, 184, 0, 0.28), transparent 40%),
    linear-gradient(145deg, var(--navy), var(--navy-2));
}

.split .panel strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 0.35rem;
}

/* Contact strip */
.contact-strip {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.contact-strip::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 184, 0, 0.15);
}

.contact-strip .inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-strip h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.4rem;
}

.contact-strip p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

/* About hero — left copy / right company building (domestic-site composition) */
.about-hero {
  overflow: hidden;
  background: linear-gradient(180deg, #eef3f8 0%, #f7f9fb 55%, #ffffff 100%);
  padding-top: 1.5rem;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(280px, 1.08fr);
  gap: clamp(1rem, 3vw, 2.75rem);
  align-items: end;
  min-height: clamp(440px, 70vh, 640px);
}

.about-hero-crumb {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.about-hero-crumb a:hover {
  color: var(--brand-dark);
}

.about-hero-copy {
  padding: 2rem 0 3.25rem;
  max-width: 520px;
}

.about-hero-copy .eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 0.6rem;
}

.about-hero-copy h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  color: var(--ink);
}

.about-hero-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.about-hero-copy .btn {
  margin-top: 0.5rem;
}

.about-hero-media {
  margin: 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-width: 0;
}

.about-hero-media img {
  width: 100%;
  max-height: min(640px, 74vh);
  object-fit: cover;
  object-position: center top;
  border-radius: 18px 18px 0 0;
  display: block;
  box-shadow: 0 18px 40px rgba(15, 39, 64, 0.12);
}

@media (max-width: 900px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 0.75rem;
  }

  .about-hero-copy {
    max-width: none;
    padding-bottom: 1.25rem;
    order: 1;
  }

  .about-hero-media {
    order: 2;
  }

  .about-hero-media img {
    max-height: 380px;
    border-radius: 14px 14px 0 0;
  }
}

/* Page hero (inner) */
.page-hero {
  background:
    linear-gradient(120deg, rgba(10, 24, 40, 0.92), rgba(22, 53, 84, 0.85)),
    linear-gradient(160deg, #0a1828, #1c4668);
  color: var(--white);
  padding: 3.5rem 0 3rem;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 52ch;
  margin: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.breadcrumb a:hover {
  color: var(--brand);
}

/* Product detail */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.pd-gallery {
  background: var(--surface);
  border-radius: 20px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.pd-gallery img,
.pd-gallery video {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 14px;
  background: #f3f5f7;
}

.pd-summary .tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 0.75rem;
}

.pd-summary .pd-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.feature-list {
  margin: 1.25rem 0 1.75rem;
  display: grid;
  gap: 0.65rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.specs {
  margin-top: 3rem;
}

.specs h2 {
  margin-bottom: 1.25rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table th {
  width: 32%;
  background: var(--surface);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-group {
  margin-bottom: 1.5rem;
}

.spec-group h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--brand);
  display: inline-block;
}

/* About */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}

.stat {
  padding: 1.25rem 1rem;
  border-top: 3px solid var(--brand);
  background: var(--surface);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--ink);
  line-height: 1.1;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.value-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.value-item h3 {
  font-size: 1.1rem;
}

.value-item p {
  margin: 0;
  color: var(--muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
}

.contact-card {
  display: grid;
  gap: 1.25rem;
}

.contact-row h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-dark);
  margin-bottom: 0.35rem;
}

.contact-row p,
.contact-row a {
  margin: 0;
  color: var(--charcoal);
  font-size: 1.05rem;
}

.contact-row a:hover {
  color: var(--brand-dark);
}

.form {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
}

.form input,
.form textarea,
.form select {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 2px solid rgba(255, 184, 0, 0.45);
  border-color: var(--brand);
  background: var(--white);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

/* Footer */
.site-footer {
  background: #0b1724;
  color: rgba(255, 255, 255, 0.72);
  padding: 3.5rem 0 1.5rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer h3 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.site-footer a:hover {
  color: var(--brand);
}

.footer-brand img {
  height: 34px;
  width: auto;
  margin-bottom: 0.9rem;
  border-radius: 8px;
  filter: brightness(1.05);
}

.footer-brand p {
  max-width: 32ch;
  margin: 0;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .product-grid,
  .adv-grid,
  .pd-layout,
  .split,
  .contact-grid,
  .stats,
  .values,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-media {
    opacity: 0.28;
    justify-content: center;
    padding-right: 0;
  }

  .hero-media img {
    width: min(70vw, 420px);
  }

  .pd-gallery {
    position: static;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-panel {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: var(--shadow);
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .header-cta,
  .header-china {
    margin-top: 0.75rem;
    justify-content: center;
  }

  .product-grid,
  .adv-grid,
  .pd-layout,
  .split,
  .contact-grid,
  .stats,
  .values,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 3.25rem 0 3.5rem;
  }

  .hero-media {
    display: none;
  }

  .section {
    padding: 3.5rem 0;
  }

  .contact-strip .inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
