/* Merlin Trading Ltd - LKChem-style corporate restyle, orange/white brand */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --orange: #F6732B;
  --orange-dark: #d95f1c;
  --peach: #FDEBDD;
  --ink: #333333;
  --muted: #6b6b6b;
  --line: #d9d9d9;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans', 'Segoe UI', 'Malgun Gothic', Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s ease, box-shadow .3s ease;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 32px;
  border-bottom: 1px solid rgba(255,255,255,.25);
  transition: border-color .3s ease;
}
.logo-badge {
  background: #fff;
  border-radius: 6px;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.logo-badge img { height: 44px; width: auto; }
.top-links { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.top-links a {
  color: #fff;
  padding: 4px 12px;
  border-right: 1px solid rgba(255,255,255,.35);
  transition: opacity .2s;
}
.top-links a:last-child { border-right: 0; }
.top-links a:hover { opacity: .75; }
.main-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 32px;
}
.main-nav a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 22px;
  position: relative;
  transition: opacity .2s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 22px; right: 22px; bottom: 8px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }
.site-header.solid {
  background: var(--orange);
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.site-header.solid .topbar { border-bottom-color: rgba(255,255,255,.3); }
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  margin: 5px 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 92vh;
  min-height: 520px;
  overflow: hidden;
  background: #222;
}
.hero-slides, .hero-slide {
  position: absolute;
  inset: 0;
}
.hero-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.25) 50%, rgba(0,0,0,.45) 100%);
}
.hero-copy {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  padding: 0 24px;
  z-index: 2;
}
.hero-copy h1.hollow {
  font-size: clamp(44px, 7.5vw, 96px);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.08;
  color: transparent;
  -webkit-text-stroke: 2px #fff;
  text-stroke: 2px #fff;
  margin-bottom: 22px;
}
@supports not (-webkit-text-stroke: 1px #fff) {
  .hero-copy h1.hollow { color: #fff; }
}
.hero-copy p {
  color: #fff;
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 400;
  max-width: 640px;
  margin: 0 auto;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: none;
  border: 0;
  color: #fff;
  font-size: 52px;
  line-height: 1;
  padding: 18px 10px;
  cursor: pointer;
  opacity: .75;
  transition: opacity .2s;
}
.hero-arrow:hover { opacity: 1; }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }
.hero-dots {
  position: absolute;
  bottom: 26px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 3;
}
.hero-dots .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}
.hero-dots .dot.active { background: #fff; }

/* ---------- Band ---------- */
.band {
  background: var(--orange);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 48px;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 32px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 72px;
}
.section-head h2, .about h2, .contact h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}
.section-head p {
  max-width: 380px;
  color: var(--muted);
  font-size: 15px;
}
.eyebrow {
  display: block;
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  margin-bottom: 14px;
}

/* Feature rows (LKChem alternating style) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  align-items: center;
  gap: 56px;
  margin-bottom: 88px;
}
.feature-row.flip { grid-template-columns: 1.35fr 1fr; }
.feature-row.flip .feature-text { order: 2; text-align: right; }
.feature-row.flip .feature-img { order: 1; }
.feature-row.flip .feature-text hr { margin-left: auto; }
.feature-text h3 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 26px;
}
.feature-text hr {
  width: 64px;
  border: 0;
  border-top: 1px solid var(--ink);
  margin-bottom: 26px;
}
.feature-text p { color: var(--muted); margin-bottom: 18px; font-size: 15px; }
.view-more {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  border-bottom: 1px solid var(--orange);
  padding-bottom: 3px;
  transition: color .2s;
}
.view-more:hover { color: var(--orange-dark); }
.feature-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(0,0,0,.14);
}

/* Secondary products */
.secondary-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.secondary-products article {
  background: var(--peach);
  padding: 40px 32px;
}
.category-number {
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
}
.secondary-products h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 14px 0 12px;
}
.secondary-products p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.secondary-products .card-photo {
  display: block;
  width: calc(100% + 64px);
  max-width: none;
  height: 180px;
  object-fit: cover;
  margin: -40px -32px 24px;
}

/* Portfolio */
.portfolio { border-top: 1px solid var(--line); }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.gallery figure { position: relative; overflow: hidden; }
.gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
}

/* About */
.about {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.about p { color: var(--muted); margin-bottom: 18px; }
.about-facts {
  display: flex;
  gap: 56px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted);
}
.about-facts b { color: var(--ink); }

/* Contact */
.contact {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}
.contact-intro p { color: var(--muted); margin-top: 18px; max-width: 380px; }
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-card {
  border: 1px solid var(--line);
  padding: 26px 24px;
  transition: border-color .2s, box-shadow .2s;
}
a.contact-card:hover {
  border-color: var(--orange);
  box-shadow: 0 8px 24px rgba(246,115,43,.15);
}
.contact-card span {
  display: block;
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  margin-bottom: 10px;
}
.contact-card strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}

/* Footer */
footer {
  background: #222222;
  color: #cfcfcf;
  padding: 64px 32px 32px;
  text-align: center;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
  text-align: left;
}
.footer-brand img.footer-mark { height: 66px; width: auto; margin-bottom: 12px; }
.footer-word { font-weight: 800; letter-spacing: 5px; font-size: 15px; color: #f2f2f2; margin: 0 0 8px; }
.footer-brand p { font-size: 13px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 14px; transition: color .2s; }
.footer-nav a:hover { color: var(--orange); }
.footer-contact p { font-size: 13px; margin-bottom: 8px; }
footer small {
  display: block;
  border-top: 1px solid #3a3a3a;
  padding-top: 24px;
  font-size: 12px;
  color: #8a8a8a;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  .top-links { display: none; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: var(--orange);
    padding: 8px 0 16px;
  }
  .main-nav.open { display: flex; }
  .site-header:not(.solid) { background: rgba(246,115,43,.92); }
  .section { padding: 64px 20px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 48px; }
  .feature-row, .feature-row.flip {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 56px;
  }
  .feature-row.flip .feature-text { order: 1; text-align: left; }
  .feature-row.flip .feature-img { order: 2; }
  .feature-row.flip .feature-text hr { margin-left: 0; }
  .feature-img img { height: 260px; }
  .secondary-products, .gallery { grid-template-columns: 1fr; }
  .about, .contact { grid-template-columns: 1fr; gap: 36px; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand img.footer-mark { margin: 0 auto 12px; }
  .footer-nav { align-items: center; }
  .hero { height: 78vh; }
  .hero-arrow { font-size: 38px; }
}

/* Markets */
.markets-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}
.markets-col h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
}
.markets-col p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.markets-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.chip {
  border: 1px solid var(--line);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  background: #fff;
}
.chip.hot {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.markets-note { font-weight: 700; color: var(--ink) !important; margin-bottom: 10px !important; font-size: 13px !important; letter-spacing: .08em; }

@media (max-width: 900px) {
  .markets-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* World map */
.map-wrap {
  background: #faf7f2;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 56px;
}
.world-map { display: block; width: 100%; height: auto; }
.world-map .land path { fill: #e7dfd3; stroke: #d6ccbc; stroke-width: .6; }
.world-map .route { fill: none; stroke: #F6732B; stroke-width: 2.4; stroke-dasharray: 7 5; opacity: .95; }
.world-map .dest { fill: #F6732B; }
.world-map .origin { fill: #F6732B; stroke: #fff; stroke-width: 1.6; }
.world-map .origin-ring { fill: none; stroke: #F6732B; stroke-width: 1.4; opacity: .5; }
.world-map .origin-label { font: 800 20px "Noto Sans", Arial, sans-serif; fill: #3a332c; letter-spacing: .12em; }

/* Social links (topbar + footer) */
.socials { display: flex; gap: 10px; align-items: center; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.socials svg { width: 17px; height: 17px; }
.top-socials { margin-left: 6px; }
.top-socials a { width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.5); }
.top-socials svg { width: 14px; height: 14px; fill: #fff; }
.top-socials a:hover { background: #fff; border-color: #fff; opacity: 1; }
.top-socials a:hover svg { fill: var(--orange); }
.footer-socials { margin-top: 16px; }
.footer-socials a { background: #2e2e2e; border: 1px solid #404040; }
.footer-socials svg { fill: #e6e6e6; }
.footer-socials a:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-2px); }
@media (max-width: 900px) { .footer-socials { justify-content: center; } }

/* Social fix: neutralize .top-links a padding/border on icon buttons */
.top-links .top-socials a { padding: 0; border-right: 0; flex: none; }
.socials svg { flex: none; }

/* Mobile hero headline: keep clear of slider arrows */
@media (max-width: 587px) {
  .hero-copy h1.hollow { font-size: clamp(22px, 6.2vw, 43px); }
}

/* Product subpages */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 200px 32px 96px;
  text-align: center;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.5) 100%);
}
.page-hero-copy { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; }
.eyebrow-light { color: #ffb387; }
.page-hero-copy h1 {
  color: #fff;
  font-size: clamp(34px, 5.2vw, 62px);
  font-weight: 800;
  letter-spacing: .02em;
  margin: 12px 0 16px;
}
.page-hero-copy p { color: rgba(255,255,255,.92); font-size: clamp(15px, 1.7vw, 19px); }
.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.detail-grid h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; margin: 12px 0 18px; }
.detail-lead { font-size: 17px; font-weight: 500; margin-bottom: 14px; }
.detail-grid > div > p:not(.detail-lead) { color: var(--muted); font-size: 15px; line-height: 1.7; }
.detail-photo img { width: 100%; height: 400px; object-fit: cover; }
.enquiry-head { font-size: 16px; font-weight: 800; margin: 28px 0 12px; }
.enquiry-list { margin: 0 0 30px; padding-left: 20px; color: var(--muted); }
.enquiry-list li { margin-bottom: 8px; font-size: 15px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.cta-primary {
  background: var(--orange); color: #fff;
  padding: 14px 24px; font-weight: 700; font-size: 13px; letter-spacing: .12em;
  transition: background .2s;
}
.cta-primary:hover { background: var(--orange-dark); }
.cta-secondary {
  border: 1px solid var(--orange); color: var(--orange);
  padding: 14px 24px; font-weight: 700; font-size: 13px; letter-spacing: .12em;
  transition: background .2s;
}
.cta-secondary:hover { background: var(--peach); }
@media (max-width: 900px) {
  .page-hero { padding: 150px 24px 64px; }
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .detail-photo img { height: 240px; }
}

/* Portrait detail photo */
.detail-photo img.tall { height: 520px; }
@media (max-width: 900px) { .detail-photo img.tall { height: 340px; } }

/* Hero text animation: gentle rise-in on load + slow breathing accent bar */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-copy h1.hollow { animation: heroRise .9s ease-out .15s both; }
.hero-copy p { animation: heroRise .9s ease-out .45s both; }
.hero-accent {
  width: 72px; height: 3px;
  background: var(--orange);
  margin: 20px auto 0;
  animation: accentBreathe 4.5s ease-in-out 1.2s infinite;
}
@keyframes accentBreathe {
  0%, 100% { transform: scaleX(.55); opacity: .65; }
  50%      { transform: scaleX(1);   opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy h1.hollow, .hero-copy p, .hero-accent { animation: none !important; }
}

/* Brand accent colors for headings (orange/navy palette) */
:root { --navy: #1F3A5F; }
.section-head h2, .about h2, .contact h2,
.secondary-products h3, .markets-col h3, .detail-grid h2,
.about-facts b, .enquiry-head { color: var(--navy); }

/* ---------- Merlin Travel banner + store links (2026-11-22) ---------- */
.travel-banner { background: var(--navy); color: #fff; }
.travel-inner {
  max-width: 1200px; margin: 0 auto; padding: 56px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.travel-inner h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.25; }
.travel-inner p { color: rgba(255,255,255,.82); margin-top: 10px; max-width: 520px; font-size: 15px; }
.travel-inner .eyebrow { margin-bottom: 10px; }
.travel-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.travel-banner .cta-secondary { border-color: #fff; color: #fff; }
.travel-banner .cta-secondary:hover { background: rgba(255,255,255,.12); }
@media (max-width: 900px) { .travel-inner { padding: 44px 20px; } }

/* ---------- v14: homepage refresh (travel-style) ---------- */
.hero-overlay {
  background: linear-gradient(180deg, rgba(9,18,38,.62) 0%, rgba(9,18,38,.38) 45%, rgba(9,18,38,.66) 100%);
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
  animation: heroRise .9s ease-out .6s both;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.75);
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.hero-chip:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }

/* Category cards: clean photo cards that open their own page */
.secondary-products { gap: 24px; }
.secondary-products article {
  background: #fff;
  border: 1px solid #e8e4df;
  border-radius: 16px;
  overflow: hidden;
  padding: 0 0 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(16,24,40,.07);
  transition: transform .25s ease, box-shadow .25s ease;
}
.secondary-products article:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(16,24,40,.14);
}
.secondary-products .card-photo {
  width: 100%;
  max-width: 100%;
  height: 210px;
  margin: 0 0 20px;
  transition: transform .4s ease;
}
.secondary-products article:hover .card-photo { transform: scale(1.045); }
.secondary-products .category-number { padding: 0 24px; }
.secondary-products h3 { padding: 0 24px; margin: 10px 0 10px; }
.secondary-products p { padding: 0 24px; margin-bottom: 18px; flex: 1; }
.secondary-products .view-more {
  align-self: flex-start;
  margin: 0 24px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  transition: background .2s, color .2s;
}
.secondary-products .view-more:hover { background: var(--orange); color: #fff; }
@media (max-width: 640px) {
  .secondary-products .card-photo { height: 190px; }
  .hero-chips { gap: 8px; margin-top: 20px; }
  .hero-chip { padding: 8px 14px; font-size: 13px; min-height: 40px; }
}
