/* ============================================================
   YIWANTO APPAREL TRADE — global stylesheet
   Light, editorial, trade-fair aesthetic
   ============================================================ */

:root {
  --paper: #f4f1ea;
  --card: #fbf9f4;
  --ink: #191512;
  --muted: #6e675d;
  --line: #e2dccf;
  --accent: #2f4a3d;      /* deep trade green */
  --accent-2: #b4552d;    /* terracotta, used sparingly */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 14px;
}

.eyebrow .dot { color: var(--accent-2); }

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 56ch;
}

section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 234, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.brand .mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
}

.nav-links a:not(.btn) {
  color: var(--muted);
  transition: color 0.2s;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:not(.btn):hover { color: var(--ink); border-bottom-color: var(--accent-2); }

.nav-links a.active { color: var(--ink); border-bottom-color: var(--accent-2); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

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

.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { box-shadow: 0 8px 20px rgba(25, 21, 18, 0.18); }

.btn-wa { background: var(--accent); color: #fff; }
.btn-wa:hover { box-shadow: 0 8px 20px rgba(47, 74, 61, 0.3); }

.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-light { background: var(--paper); color: var(--ink); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
  background: var(--card);
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 em { font-style: italic; color: var(--accent); }

.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-meta b { display: block; color: var(--ink); font-size: 1.05rem; }

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(25, 21, 18, 0.16);
  border: 1px solid var(--line);
}

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

.hero-media { aspect-ratio: 4 / 5; }

/* ---------- Marquee strip ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
  padding: 18px 0;
  overflow: hidden;
}

.strip-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: scroll 28s linear infinite;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.strip-track span::before { content: "✦"; color: var(--accent-2); margin-right: 14px; }

@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(25, 21, 18, 0.1); }

.card .num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--accent-2);
  margin-bottom: 12px;
  display: block;
}

.card p { color: var(--muted); font-size: 0.95rem; margin-top: 10px; }

.brand-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }

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

.brand-card .media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}

.brand-card:hover .media img { transform: scale(1.05); }

.brand-card .body { padding: 30px; flex: 1; display: flex; flex-direction: column; }

.brand-card .tag {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 10px;
}

.brand-card ul { list-style: none; margin: 18px 0 24px; color: var(--muted); font-size: 0.92rem; }

.brand-card ul li { padding: 5px 0; border-bottom: 1px dashed var(--line); }

.brand-card ul li::before { content: "— "; color: var(--accent); }

.brand-card .body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }

.step {
  border-top: 1px solid var(--line);
  padding: 26px 8px;
  display: grid;
  grid-template-columns: 64px 1fr 2fr;
  gap: 24px;
  align-items: baseline;
}

.step .no {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--accent);
}

.step h3 { font-size: 1.15rem; }

.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.stat { background: var(--card); padding: 30px 26px; }

.stat b { font-family: var(--serif); font-size: 2rem; display: block; }

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

/* ---------- Dark / exhibition band ---------- */
.band {
  background: var(--ink);
  color: var(--paper);
  border-radius: 20px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.band .eyebrow { color: rgba(244, 241, 234, 0.6); }

.band p { color: rgba(244, 241, 234, 0.75); }

.fair-list { list-style: none; display: grid; gap: 14px; }

.fair-list li {
  border: 1px solid rgba(244, 241, 234, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.fair-list b { font-family: var(--serif); font-size: 1.05rem; }

.fair-list .where { color: rgba(244, 241, 234, 0.6); font-size: 0.85rem; display: block; }

/* ---------- Check list ---------- */
.checks { list-style: none; display: grid; gap: 14px; }

.checks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.97rem;
}

.checks li::before {
  content: "✓";
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  margin-top: 3px;
}

.checks p { color: var(--muted); font-size: 0.9rem; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: 96px 24px; }

.cta h2 { margin-bottom: 16px; }

.cta p { color: var(--muted); max-width: 52ch; margin: 0 auto 32px; }

.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page head (subpages) ---------- */
.page-head { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Contact info list ---------- */
.info-list { list-style: none; display: grid; gap: 22px; }

.info-list li b {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.info-list li a, .info-list li span { font-family: var(--serif); font-size: 1.2rem; }

.info-list li a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 56px 0 32px;
  margin-top: 40px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.foot-grid p { color: var(--muted); font-size: 0.9rem; max-width: 40ch; margin-top: 12px; }

.foot-grid h4 {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.foot-grid ul { list-style: none; display: grid; gap: 10px; font-size: 0.92rem; }

.foot-grid ul a { color: var(--ink); }

.foot-grid ul a:hover { color: var(--accent-2); }

.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Product gallery ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }

.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover { border-color: var(--ink); color: var(--ink); }

.filter-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.shot {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: zoom-in;
  aspect-ratio: 2 / 3;
}

.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.shot:hover img { transform: scale(1.05); }

.shot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(transparent, rgba(20, 16, 13, 0.72));
  color: #fff;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.25s;
}

.shot:hover figcaption { opacity: 1; }

.shot.hide { display: none; }

/* video block */
.video-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(25, 21, 18, 0.16);
}

.video-frame video { width: 100%; display: block; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 16, 13, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-height: 88vh;
  max-width: 92vw;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.lightbox .lb-close {
  position: absolute;
  top: 20px; right: 28px;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  cursor: pointer;
  padding: 20px 4px;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent-2); }

.faq-item[open] summary::after { content: "–"; }

.faq-item .faq-a { padding: 0 4px 22px; color: var(--muted); font-size: 0.95rem; max-width: 70ch; }

/* ---------- Modes ---------- */
.mode-card { display: flex; flex-direction: column; }

.mode-card .diff {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: auto;
  padding-top: 18px;
}

.mode-card .for {
  font-size: 0.78rem;
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Fair meta & brand logos ---------- */
.fair-meta {
  font-size: 0.95rem;
  line-height: 1.7;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(47, 74, 61, 0.06);
  border-radius: 0 10px 10px 0;
}
.fair-meta b { color: var(--ink); }

.brand-logo {
  height: 72px;
  width: auto;
  display: block;
}
.brand-logo.small { height: 44px; }
.brand-logo-inline {
  height: 34px;
  width: auto;
  vertical-align: middle;
  margin-right: 12px;
}

/* ---------- Full-bleed background video band ---------- */
.video-band {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}
.video-band video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.video-band .video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 26, 22, 0.55), rgba(20, 26, 22, 0.65));
  z-index: 1;
}
.video-band .video-content {
  position: relative;
  z-index: 2;
  padding: 96px 0;
  max-width: 640px;
}
.video-band .eyebrow { color: rgba(244, 241, 234, 0.75); }
.video-band h2,
.video-band p { color: var(--paper); }
.video-band p { opacity: 0.92; }
@media (prefers-reduced-motion: reduce) {
  .video-band video { display: none; }
}
@media (max-width: 680px) {
  .video-band { min-height: 380px; }
  .video-band .video-content { padding: 72px 0; }
}

/* ---------- Language switch ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 5px 13px !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px;
  font-size: 0.76rem !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted) !important;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.lang-switch:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip-track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) and (min-width: 961px) {
  .nav-links { gap: 16px; font-size: 0.86rem; }
  .nav-links .btn { padding: 9px 16px; }
}

@media (max-width: 960px) {
  .hero-grid, .grid-2, .band { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .band { padding: 36px; }
  .step { grid-template-columns: 48px 1fr; }
  .step p { grid-column: 2; }
}

@media (max-width: 680px) {
  .grid-3, .grid-4, .field-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .hero { padding: 48px 0 64px; }
}
