/* ==========================================================
   LEOACE — stylesheet
   Digital catalogue / company profile for a B2B baby-products
   and pet-stroller OEM·ODM manufacturer.

   Source of truth for all content: Leoace A5 catalogue (PDF).
   Design direction: minimal, editorial, black / dark / muted
   green, large type, large product photography. No cards,
   no gradients, no rounded corners, no decorative animation.
   ========================================================== */

:root {
  /* --- Brand colors (sampled from the Leoace A5 catalogue) --- */
  --ink: #14151a;              /* primary text */
  --ink-muted: #5c5f66;        /* secondary text */
  --bg: #ffffff;               /* page background */
  --bg-soft: #f5f5f1;          /* alternating section background */
  --bg-dark: #131313;          /* catalogue "cover / OEM" black */
  --bg-dark-soft: #1c1c1c;
  --line: #e3e2dc;             /* hairline rules */
  --line-dark: #34342f;        /* hairline rules on dark bg */
  --accent: #8aa558;           /* Leoace green, from official logo file */
  --accent-ink: #4c6a2d;       /* darker green for text-on-light use */
  --on-dark: #f4f4f1;          /* text on dark background */
  --on-dark-muted: #a9a9a2;

  /* --- Layout --- */
  --max-width: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-height: 76px;

  --transition: 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: "Archivo", "Pretendard", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
  list-style: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Kickers / labels ---------- */
.kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 18px;
}

.kicker.on-dark {
  color: var(--accent);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--line-dark);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 28px;
  height: 24px;
  flex: none;
}

.brand-mark path {
  fill: var(--accent);
}

.brand-word {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--on-dark);
  text-transform: uppercase;
}

.nav ul {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
}

.nav a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--on-dark);
  border-color: var(--accent);
}

/* language switch — placeholder for future KO / EN / CN expansion */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--on-dark-muted);
}

.lang-item.is-active {
  color: var(--accent);
}

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: background var(--transition), color var(--transition);
}

.btn-light {
  color: var(--on-dark);
}

.btn-light:hover {
  background: var(--on-dark);
  color: var(--bg-dark);
}

.btn-dark {
  color: var(--ink);
}

.btn-dark:hover {
  background: var(--ink);
  color: var(--bg);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  transition: color var(--transition), gap var(--transition);
}

.text-link:hover {
  color: var(--accent-ink);
  gap: 12px;
}

.text-link.on-dark {
  color: var(--on-dark);
}

.text-link.on-dark:hover {
  color: var(--accent);
}

/* ---------- Hero / Main visual ---------- */
/* Single key-visual photo (cover spread render). The baked-in tagline area
   was blacked out in the image itself; this same line is recreated as live
   HTML here so it can reveal one line at a time on load. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  min-height: 100svh;
  color: var(--on-dark);
  background: var(--bg-dark) url("assets/hero-bg.jpg") center center / cover no-repeat;
}

.hero-reveal {
  --hero-size: clamp(2.5rem, min(11.4vh, 12.4vw), 7.2rem);
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 0.6vw, 8px);
  padding: 0 var(--gutter);
  text-align: center;
}

.hero-line {
  max-width: clamp(320px, 68vh, 980px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  opacity: 0;
  transform: translateY(14px);
  animation: heroLineIn 0.8s ease forwards;
  overflow-wrap: break-word;
  hyphens: auto;
}

.hero-line-1 {
  font-size: calc(var(--hero-size) * 0.72);
  animation-delay: 0.4s;
}

.hero-line-we {
  font-size: var(--hero-size);
  color: var(--accent);
  animation-delay: 1s;
}

.hero-line-make {
  font-size: calc(var(--hero-size) * 0.46);
  color: var(--accent);
  animation-delay: 1.5s;
}

.hero-sub {
  max-width: clamp(320px, 68vh, 980px);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  animation: heroLineIn 0.7s ease forwards;
}

.hero-materials {
  margin-top: clamp(8px, 1.6vh, 20px);
  font-size: calc(var(--hero-size) * 0.155);
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--accent);
  animation-delay: 1.9s;
}

.hero-oem {
  font-size: calc(var(--hero-size) * 0.23);
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--on-dark);
  animation-delay: 2.1s;
}

@keyframes heroLineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-line,
  .hero-sub {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Marquee strip (below hero) ---------- */
.marquee-strip {
  overflow: hidden;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: clamp(14px, 2.4vw, 24px) 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 26s linear infinite;
}

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

.marquee-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  font-size: clamp(1rem, 2.3vw, 1.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--on-dark-muted);
  white-space: nowrap;
  padding: 0 clamp(20px, 3vw, 44px);
}

.marquee-item strong {
  font-weight: 900;
  color: var(--on-dark);
}

.marquee-sep {
  color: var(--line-dark);
  font-size: clamp(1rem, 2.3vw, 1.6rem);
  font-weight: 300;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    overflow-x: auto;
  }
}

/* ---------- Sections (generic) ---------- */
.section {
  padding: clamp(64px, 10vw, 128px) 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--on-dark);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 1.02rem;
}

.section-dark .section-head p {
  color: var(--on-dark-muted);
}

.section-foot {
  margin-top: clamp(40px, 6vw, 64px);
}

/* ---------- Stat rows (About / Factory) ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(28px, 4vw, 40px);
}

.stat {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.section-dark .stat {
  border-color: var(--line-dark);
}

.stat-num {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}

.section-dark .stat-num {
  color: var(--on-dark);
}

.stat-num em {
  font-style: normal;
  color: var(--accent-ink);
}

.section-dark .stat-num em {
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.section-dark .stat-label {
  color: var(--on-dark-muted);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.about-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

/* ---------- Core business ---------- */
.business-list {
  border-top: 1px solid var(--line);
}

.business-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: clamp(16px, 4vw, 40px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--transition);
}

.business-row:hover {
  background: var(--bg-soft);
}

.business-icon {
  width: 44px;
  height: 44px;
  color: var(--accent-ink);
}

.business-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.business-body h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.business-body p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  max-width: 46ch;
}

.business-row .text-link {
  white-space: nowrap;
}

/* ---------- Product highlights (editorial, no cards) ---------- */
.product-highlights {
  display: grid;
  gap: clamp(48px, 6vw, 80px);
}

.product-highlight {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.product-highlight:nth-child(even) {
  grid-template-columns: 1fr 1.1fr;
}

.product-highlight:nth-child(even) .product-media {
  order: 2;
}

.product-media {
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.section-dark .product-media {
  background: var(--bg-dark-soft);
}

.section-dark .product-media img {
  mix-blend-mode: normal;
}

/* Lifestyle photo (full-bleed, not a cutout on white) — skip the
   multiply blend and fill the frame instead of letterboxing. */
.product-media.product-photo img {
  object-fit: cover;
  mix-blend-mode: normal;
}

/* Hover: crossfade the lifestyle photo to the plain product cutout. */
.product-media.product-photo {
  position: relative;
}

/* Higher specificity than ".product-media.product-photo img" (which sets
   cover for the lifestyle shot) so the alt product photo actually gets
   the "contain" treatment instead of being cropped top/bottom. */
.product-media.product-photo img.product-photo-alt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.product-media.product-photo:hover .product-photo-alt,
.product-media.product-photo:focus-within .product-photo-alt {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .product-photo-alt {
    transition: none;
  }
}

.product-code {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  color: var(--line);
  line-height: 1;
  margin-bottom: 12px;
}

.product-name {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.product-specs {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.product-specs li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.product-specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

/* ---------- OEM / ODM ---------- */
.oem-section {
  position: relative;
  background: var(--bg-dark) url("assets/oem-bg.jpg") center right / cover no-repeat;
}

.oem-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.82) 45%, rgba(10, 10, 10, 0.35) 78%);
}

.oem-section .container {
  position: relative;
}

.oem-headline {
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin-bottom: 28px;
}

.oem-headline em {
  font-style: normal;
  color: var(--accent);
}

.oem-copy {
  color: var(--on-dark-muted);
  max-width: 46ch;
  margin-bottom: 40px;
  font-size: 1.02rem;
}

.oem-materials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  border-top: 1px solid var(--line-dark);
  padding-top: 22px;
  margin-bottom: 40px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark);
}

/* ---------- Factory photo strip ---------- */
.factory-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2px, 0.6vw, 6px);
  margin-top: clamp(40px, 6vw, 64px);
}

.factory-photos img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cert-block {
  margin-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line-dark);
  padding-top: clamp(32px, 5vw, 48px);
}

.cert-block img {
  width: 100%;
  max-width: 640px;
}

.cert-caption {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--on-dark-muted);
  max-width: 60ch;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
}

.contact-list {
  border-top: 1px solid var(--line);
}

.contact-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

.contact-list dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.contact-list dd a {
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

.contact-list dd a:hover {
  color: var(--accent-ink);
  border-color: var(--accent);
}

.contact-qr {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background: var(--bg-soft);
}

.contact-qr img {
  width: 92px;
  height: 92px;
  flex: none;
}

.contact-qr p {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.contact-qr strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 4px;
}

/* ---------- Page header (catalog pages) ---------- */
.page-head {
  padding: calc(var(--header-height) + clamp(56px, 8vw, 96px)) 0 clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.page-head p {
  color: var(--ink-muted);
  max-width: 60ch;
  font-size: 1.02rem;
}

/* ---------- Catalog rows (Baby Products / Pet Strollers pages) ---------- */
.catalog-list {
  display: grid;
  gap: 0;
}

.catalog-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 7vw, 88px) 0;
  border-bottom: 1px solid var(--line);
}

.catalog-row:nth-child(even) {
  grid-template-columns: 1.1fr 1fr;
}

.catalog-row:nth-child(even) .product-media {
  order: 2;
}

.catalog-cta {
  padding: clamp(56px, 8vw, 96px) 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.catalog-cta h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 20px;
  max-width: 30ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--on-dark-muted);
  padding: clamp(48px, 6vw, 72px) 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(32px, 5vw, 48px);
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 24px;
}

.footer-brand .brand-word {
  color: var(--on-dark);
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 34ch;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 14px;
}

.footer-col li {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid,
  .product-highlight,
  .product-highlight:nth-child(even),
  .catalog-row,
  .catalog-row:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .product-highlight:nth-child(even) .product-media,
  .catalog-row:nth-child(even) .product-media {
    order: -1;
  }

  .about-media {
    order: -1;
  }

  .business-row {
    grid-template-columns: 44px 1fr;
  }

  .business-row .text-link {
    grid-column: 2;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .factory-photos {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding-block: 14px;
    row-gap: 10px;
  }

  .nav {
    order: 3;
    width: 100%;
  }

  .nav ul {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .lang-switch {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 60;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--on-dark);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--accent);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 0.2s linear, visibility 0.2s linear;
  }
}
