/* ===== Cu Long Trade Company Limited ===== */
:root {
  --ink: #0b1f33;
  --ink-2: #12304d;
  --teal: #0fa3a3;
  --teal-dark: #0b7f84;
  --amber: #f5a524;
  --amber-dark: #d98a0b;
  --paper: #f6f3ec;
  --white: #ffffff;
  --text: #1d2b3a;
  --muted: #5a6b7c;
  --line: #e1dccf;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 31, 51, 0.12);
  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.8rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 16px; }
a { color: var(--teal-dark); transition: color 0.2s ease; }
a:hover { color: var(--amber-dark); }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--amber); color: var(--ink); padding: 8px 16px; border-radius: 8px; z-index: 200;
}
.skip-link:focus { left: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-dark);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 32px; height: 3px; background: var(--amber); border-radius: 2px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: var(--ink); box-shadow: 0 8px 20px rgba(245, 165, 36, 0.35); }
.btn-primary:hover { background: #ffb73d; color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); color: var(--white); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  display: flex; align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(11, 31, 51, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.logo:hover { color: var(--white); }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--amber), #ff8a3d);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--ink);
  transform: rotate(-6deg);
}
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 0.95rem; line-height: 1.1; letter-spacing: 0.04em; }
.logo-text small { display: block; font-weight: 500; font-size: 0.62rem; letter-spacing: 0.22em; opacity: 0.7; margin-top: 3px; }

.nav-list { list-style: none; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
.nav-list a {
  color: rgba(255, 255, 255, 0.85); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  padding: 8px 14px; border-radius: 999px; transition: background 0.2s ease, color 0.2s ease;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, 0.12); }
.nav-list .nav-cta a { background: var(--amber); color: var(--ink); font-weight: 700; }
.nav-list .nav-cta a:hover { background: #ffb73d; color: var(--ink); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 12px; width: 20px; height: 2px; background: var(--white);
  border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .nav-list {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 24px 24px;
    background: var(--ink);
    transform: translateY(-120%); visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
  }
  .nav-list.open { transform: translateY(0); visibility: visible; }
  .nav-list a { display: block; padding: 14px 16px; }
  .nav-list .nav-cta a { text-align: center; margin-top: 8px; }
}

/* ===== Hero ===== */
.hero {
  position: relative; color: var(--white);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(15, 163, 163, 0.35), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(245, 165, 36, 0.18), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, #0d2a45 100%);
  padding: calc(var(--header-h) + 72px) 0 150px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 70px));
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.07;
  background-image: linear-gradient(var(--white) 1px, transparent 1px), linear-gradient(90deg, var(--white) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero-grid { position: relative; display: grid; gap: 56px; align-items: center; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .eyebrow { color: #7fe3e3; }
.hero-lead { font-size: 1.15rem; color: rgba(255, 255, 255, 0.82); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; padding: 0; list-style: none; }
.hero-tags li {
  font-size: 0.85rem; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.85);
}

.hero-visual { position: relative; max-width: 520px; width: 100%; margin-inline: auto; }
.hero-visual svg { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35)); }
.route-line { stroke-dasharray: 6 8; animation: dash 18s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -280; } }
.float { animation: float 6s ease-in-out infinite; }
.float.delay { animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}

/* ===== Sections ===== */
section { position: relative; }
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* About */
.about { margin-top: -40px; }
.about-grid { display: grid; gap: 48px; align-items: start; }
.about-card {
  background: var(--ink); color: var(--white); border-radius: 24px; padding: 36px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.about-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 165, 36, 0.5), transparent 70%);
}
.about-card h3 { color: var(--white); font-size: 1.05rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 24px; }
.facts { margin: 0; display: grid; gap: 18px; position: relative; z-index: 1; }
.facts div { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 14px; }
.facts dt { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); font-weight: 600; margin-bottom: 4px; }
.facts dd { margin: 0; color: rgba(255, 255, 255, 0.92); overflow-wrap: anywhere; }
.facts a { color: var(--white); }
.facts a:hover { color: var(--amber); }

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.1fr 0.9fr; gap: 72px; }
}

/* Services */
.services { background: var(--white); }
.cards { display: grid; gap: 24px; grid-template-columns: 1fr; }
.card {
  background: var(--paper); border-radius: var(--radius); padding: 32px 28px;
  border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: linear-gradient(90deg, var(--amber), var(--teal));
  transition: width 0.4s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { width: 100%; }
.icon-box {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--ink); color: var(--amber);
}
.icon-box svg { width: 28px; height: 28px; }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }

@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* Process */
.process { background: var(--ink); color: var(--white); clip-path: polygon(0 60px, 100% 0, 100% calc(100% - 60px), 0 100%); padding: 160px 0; margin: -60px 0; z-index: 1; }
.process h2 { color: var(--white); }
.process .section-head p { color: rgba(255, 255, 255, 0.72); }
.process .eyebrow { color: #7fe3e3; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 24px; }
.steps li {
  counter-increment: step; position: relative; padding: 28px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); background: rgba(255, 255, 255, 0.04);
  transition: background 0.3s ease, transform 0.3s ease;
}
.steps li:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-4px); }
.steps li::before {
  content: "0" counter(step); display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--amber); margin-bottom: 16px;
}
.steps h3 { color: var(--white); }
.steps p { margin: 0; color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Why us */
.why { padding-top: 160px; }
.why-grid { display: grid; gap: 40px; }
.why-list { display: grid; gap: 20px; }
.why-item { display: flex; gap: 18px; padding: 24px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.why-item:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.why-item .icon-box { flex: none; margin: 0; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: var(--white); }
.why-item h3 { margin-bottom: 6px; }
.why-item p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.why-intro .btn { margin-top: 12px; }
@media (min-width: 900px) { .why-grid { grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; } .why-intro { position: sticky; top: 120px; } }

/* Contact */
.contact { background: linear-gradient(160deg, var(--teal-dark), var(--ink) 75%); color: var(--white); }
.contact h2, .contact h3 { color: var(--white); }
.contact .eyebrow { color: var(--amber); }
.contact-grid { display: grid; gap: 48px; }
.contact-info p { color: rgba(255, 255, 255, 0.82); }
.contact-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ci {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.12); color: var(--amber);
}
.contact-list .ci svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); font-weight: 600; }
.contact-list span, .contact-list a { color: var(--white); overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--amber); }

.form-card { background: var(--white); color: var(--text); border-radius: 24px; padding: 36px 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); }
.form-card h3 { color: var(--ink); font-size: 1.4rem; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); padding: 13px 16px; background: var(--paper);
  border: 2px solid transparent; border-radius: 12px; transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--white); }
.field textarea { min-height: 130px; resize: vertical; }
.field .error { display: none; color: #b42318; font-size: 0.82rem; margin-top: 4px; }
.field.invalid input, .field.invalid textarea { border-color: #d92d20; }
.field.invalid .error { display: block; }
.form-note { font-size: 0.82rem; color: var(--muted); margin: 14px 0 0; }
.form-status { margin-top: 14px; font-weight: 600; color: var(--teal-dark); min-height: 1.4em; }
.form-card .btn { width: 100%; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; } .form-card { padding: 44px; } }

/* ===== Footer ===== */
.site-footer { background: #07151f; color: rgba(255, 255, 255, 0.75); padding: 64px 0 32px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.site-footer h4 { color: var(--white); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer address { font-style: normal; display: grid; gap: 8px; overflow-wrap: anywhere; }
.footer-brand p { margin-top: 16px; max-width: 340px; }
.footer-bottom { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.85rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }

/* ===== Page hero + legal (privacy policy) ===== */
.page-hero {
  color: var(--white); padding: calc(var(--header-h) + 64px) 0 110px;
  background: radial-gradient(700px 360px at 90% 0%, rgba(15, 163, 163, 0.35), transparent 60%), linear-gradient(160deg, var(--ink), #0d2a45);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 40px));
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 12px; }
.page-hero p { color: rgba(255, 255, 255, 0.78); margin: 0; }
.page-hero .eyebrow { color: #7fe3e3; }

.legal { margin-top: -50px; padding-bottom: 96px; }
.legal-grid { display: grid; gap: 32px; align-items: start; }
.toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.toc h2 { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 0.92rem; }
.toc a { text-decoration: none; color: var(--text); }
.toc a:hover { color: var(--teal-dark); }
.legal-body { background: var(--white); border-radius: 24px; padding: 36px 24px; box-shadow: var(--shadow); min-width: 0; }
.legal-body section { margin-bottom: 40px; }
.legal-body section:last-child { margin-bottom: 0; }
.legal-body h2 { font-size: 1.35rem; padding-top: 4px; }
.legal-body h2 span { color: var(--amber-dark); margin-right: 8px; }
.legal-body ul { padding-left: 22px; margin: 0 0 16px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { overflow-wrap: anywhere; }
.callout { background: var(--paper); border-left: 4px solid var(--amber); border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 0 0 16px; }
.callout p { margin: 0 0 4px; }
.callout p:last-child { margin: 0; }
@media (min-width: 1024px) {
  .legal-grid { grid-template-columns: 280px 1fr; gap: 40px; }
  .toc { position: sticky; top: 96px; }
  .legal-body { padding: 56px; }
}

/* ===== Reveal animations ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
