/*
Theme Name: Trust Trade Global
Theme URI: https://trusttradeglobal.com
Author: Trust Trade Global
Author URI: https://trusttradeglobal.com
Description: Custom WordPress theme for Trust Trade Global — China-to-Nepal sourcing and import agency. Converted from the original Next.js site, same dark navy/gold/ice-blue glass-morphism design.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: trust-trade-global
*/

/* ================================================================
   Design tokens (ported 1:1 from the Next.js globals.css)
   ================================================================ */
:root {
  --tt-abyss: #0b1424;
  --tt-abyss-2: #0e1c33;
  --tt-gold: #d4af37;
  --tt-gold-soft: #e8cd7a;
  --tt-ice: #8fa9c7;
  --tt-ivory: #f5f1e8;
  --tt-seal: #c23b3b;

  --background: var(--tt-abyss);
  --foreground: var(--tt-ivory);

  --font-display: "Instrument Sans", Arial, sans-serif;
  --font-sans: "Inter", Arial, Helvetica, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--tt-abyss);
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  position: relative;
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

.tt-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.tt-container-sm { max-width: 768px; margin: 0 auto; padding: 0 24px; }
.tt-container-md { max-width: 896px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- */
/* Fixed gradient mesh backdrop                                      */
/* ---------------------------------------------------------------- */
.tt-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--tt-abyss);
}
.tt-mesh::before, .tt-mesh::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
}
.tt-mesh::before {
  width: 60vw; height: 60vw; top: -20vw; left: -10vw;
  background: radial-gradient(circle at 30% 30%, var(--tt-ice) 0%, transparent 70%);
  opacity: 0.22;
}
.tt-mesh::after {
  width: 55vw; height: 55vw; bottom: -25vw; right: -15vw;
  background: radial-gradient(circle at 70% 70%, var(--tt-gold) 0%, transparent 70%);
  opacity: 0.16;
}

/* ---------------------------------------------------------------- */
/* Glass system                                                      */
/* ---------------------------------------------------------------- */
.tt-glass {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03) 40%, rgba(255,255,255,0.02));
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 28px;
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.35) inset, 0 30px 60px -30px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,0,0,0.15);
}
.tt-glass-light {
  background: linear-gradient(160deg, rgba(245,241,232,0.85), rgba(245,241,232,0.7));
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--tt-abyss);
  border-radius: 28px;
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.8) inset, 0 30px 60px -30px rgba(0,0,0,0.35);
}
.tt-glass-pill {
  background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.3) inset, 0 20px 40px -20px rgba(0,0,0,0.5);
}
.tt-sheen { position: relative; overflow: hidden; isolation: isolate; }
.tt-sheen::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg); transition: left 0.7s ease; pointer-events: none; z-index: 1;
}
.tt-sheen:hover::after { left: 130%; }
@media (prefers-reduced-motion: reduce) { .tt-sheen::after { transition: none; display: none; } }

/* ---------------------------------------------------------------- */
/* Trade route animation                                             */
/* ---------------------------------------------------------------- */
.tt-route { width: 100%; height: auto; overflow: visible; }
.tt-route-marker {
  offset-path: path("M 40 175 C 100 195, 160 200, 230 195 C 280 190, 340 160, 400 130 C 450 105, 500 70, 560 55");
  offset-rotate: 0deg;
  animation: tt-route-travel 10s ease-in-out infinite;
}
@keyframes tt-route-travel {
  0% { offset-distance: 0%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tt-route-marker { animation: none; offset-distance: 50%; opacity: 1; }
}

/* ================================================================
   Layout: Header / Nav
   ================================================================ */
.tt-nav-wrap { position: sticky; top: 16px; z-index: 50; padding: 0 16px; }
.tt-nav {
  margin: 0 auto; max-width: 1024px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; padding: 12px 24px;
}
.tt-logo-group { display: flex; align-items: center; gap: 12px; }
.tt-logo-group img { width: 40px; height: 40px; border-radius: 8px; }
.tt-logo-group h1 { font-size: 1.125rem; font-weight: 600; color: var(--tt-ivory); letter-spacing: -0.01em; }
.tt-logo-group p { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--tt-gold); text-transform: uppercase; margin: 0; }
.tt-nav-links { display: none; align-items: center; gap: 32px; font-size: 0.875rem; font-weight: 500; color: rgba(245,241,232,0.8); }
.tt-nav-links a:hover { color: var(--tt-ivory); }
@media (min-width: 768px) { .tt-nav-links { display: flex; } }
.tt-nav-cta { display: none; }
@media (min-width: 640px) { .tt-nav-cta { display: block; } }

/* Buttons */
.tt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 24px; font-weight: 600; font-size: 0.9375rem;
  cursor: pointer; border: none; transition: all 0.3s ease;
}
.tt-btn-primary {
  background: var(--tt-gold); color: var(--tt-abyss);
  box-shadow: 0 8px 24px -8px rgba(212,175,55,0.6);
}
.tt-btn-primary:hover { box-shadow: 0 10px 30px -6px rgba(212,175,55,0.75); }
.tt-btn-secondary {
  background: transparent; color: var(--tt-ivory);
  border: 1px solid rgba(255,255,255,0.25);
}
.tt-btn-secondary:hover { border-color: rgba(255,255,255,0.5); }
.tt-btn-secondary.tt-btn-light { color: var(--tt-abyss); border-color: rgba(11,20,36,0.25); }

/* ================================================================
   Hero
   ================================================================ */
.tt-hero { position: relative; padding: 80px 0 96px; }
.tt-hero-grid { display: grid; gap: 64px; align-items: center; }
@media (min-width: 768px) { .tt-hero-grid { grid-template-columns: 1fr 1fr; } .tt-hero { padding-top: 112px; } }
.tt-eyebrow { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.3em; color: var(--tt-gold); font-size: 0.75rem; font-weight: 600; }
.tt-hero h2 { font-size: 3rem; font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; color: var(--tt-ivory); margin-top: 24px; }
@media (min-width: 768px) { .tt-hero h2 { font-size: 3.75rem; } }
.tt-hero-desc { margin-top: 32px; font-size: 1.125rem; line-height: 2rem; color: rgba(245,241,232,0.7); max-width: 560px; }
.tt-hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
.tt-trust-strip { margin-top: 48px; display: inline-flex; flex-wrap: wrap; gap: 32px 32px; padding: 16px 24px; }
.tt-trust-strip strong { display: block; color: var(--tt-gold); font-size: 0.875rem; font-weight: 600; }
.tt-trust-strip span { font-size: 0.75rem; color: rgba(245,241,232,0.6); }
.tt-hero-panel { width: 100%; max-width: 448px; padding: 40px; margin: 0 auto; }
.tt-hero-panel h3 { font-size: 1.5rem; font-weight: 600; color: var(--tt-ivory); }
.tt-hero-panel ul { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; color: rgba(245,241,232,0.8); }
.tt-route-block { margin-top: 64px; padding: 40px 32px; }
@media (min-width: 768px) { .tt-route-block { padding: 40px 56px; } }
.tt-route-block > p { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.3em; color: rgba(143,169,199,0.8); margin-bottom: 24px; }

/* ================================================================
   Section titles + generic sections
   ================================================================ */
.tt-section { padding: 96px 0; }
.tt-section-title { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.tt-section-title .tt-eyebrow { display: block; margin-bottom: 12px; }
.tt-section-title h2 { font-size: 1.875rem; font-weight: 600; color: var(--tt-ivory); }
@media (min-width: 768px) { .tt-section-title h2 { font-size: 2.25rem; } }
.tt-section-title p { margin-top: 16px; color: rgba(245,241,232,0.7); line-height: 1.6; }

.tt-grid-2 { display: grid; gap: 32px; }
@media (min-width: 768px) { .tt-grid-2 { grid-template-columns: 1fr 1fr; } }
.tt-grid-3 { display: grid; gap: 32px; }
@media (min-width: 768px) { .tt-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tt-grid-3 { grid-template-columns: 1fr 1fr 1fr; } }

.tt-card { padding: 32px; }
.tt-card .tt-icon { color: var(--tt-gold); margin-bottom: 20px; }
.tt-card h3 { font-size: 1.25rem; font-weight: 600; color: var(--tt-ivory); }
.tt-card p { margin-top: 12px; color: rgba(245,241,232,0.7); line-height: 1.6; }
.tt-card .tt-step { font-family: var(--font-mono); font-size: 0.75rem; color: var(--tt-gold); margin-bottom: 12px; letter-spacing: 0.1em; }

/* FAQ */
.tt-faq-item { padding: 24px; margin-bottom: 16px; }
.tt-faq-item h3 { font-size: 1.125rem; font-weight: 600; color: var(--tt-ivory); }
.tt-faq-item p { margin-top: 8px; color: rgba(245,241,232,0.7); line-height: 1.6; }

/* Contact CTA */
.tt-contact-box { padding: 64px 32px; text-align: center; }
@media (min-width: 768px) { .tt-contact-box { padding: 64px 64px; } }
.tt-contact-box h2 { font-size: 2.25rem; font-weight: 600; letter-spacing: -0.02em; }
.tt-contact-box p { margin-top: 24px; font-size: 1.125rem; color: rgba(11,20,36,0.7); }
.tt-contact-box .tt-hero-actions { justify-content: center; }

/* Trending products */
.tt-products-wrap { padding: 64px 0; }
.tt-products-scroll { display: flex; gap: 20px; overflow-x: auto; padding: 8px 24px 16px; scroll-snap-type: x mandatory; }
.tt-product-card { flex: 0 0 260px; scroll-snap-align: start; padding: 24px; }
.tt-product-card .tt-tag { display: inline-block; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 999px; background: rgba(212,175,55,0.15); color: var(--tt-gold); margin-bottom: 12px; }
.tt-product-card h4 { font-size: 1rem; font-weight: 600; color: var(--tt-ivory); }
.tt-product-card .tt-product-cat { font-size: 0.75rem; color: rgba(245,241,232,0.5); margin-top: 2px; }
.tt-product-card dl { margin-top: 16px; font-size: 0.8125rem; }
.tt-product-card dl div { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.tt-product-card dt { color: rgba(245,241,232,0.5); }
.tt-product-card dd { margin: 0; color: var(--tt-ivory); font-weight: 500; text-align: right; }
.tt-product-card .tt-why { margin-top: 12px; font-size: 0.8125rem; color: rgba(245,241,232,0.65); line-height: 1.5; }

/* Footer */
.tt-footer { border-top: 1px solid rgba(255,255,255,0.1); color: rgba(245,241,232,0.7); }
.tt-footer-grid { display: grid; gap: 40px; padding: 64px 0; }
@media (min-width: 768px) { .tt-footer-grid { grid-template-columns: repeat(4, 1fr); } }
.tt-footer h2 { font-size: 1.5rem; font-weight: 600; color: var(--tt-ivory); }
.tt-footer h3 { font-size: 1rem; font-weight: 600; color: var(--tt-ivory); margin-bottom: 16px; }
.tt-footer p { margin-top: 16px; line-height: 1.7; }
.tt-footer ul { display: flex; flex-direction: column; gap: 12px; }
.tt-footer a:hover { color: var(--tt-ivory); }
.tt-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 0; padding: 32px 0; text-align: center; font-size: 0.875rem; }

/* Breadcrumbs (service pages) */
.tt-breadcrumbs { font-family: var(--font-mono); font-size: 0.75rem; color: rgba(245,241,232,0.5); margin-bottom: 24px; }
.tt-breadcrumbs a { color: var(--tt-ice); }

/* Contact modal */
.tt-modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 16px;
}
.tt-modal-overlay.is-open { display: flex; }
.tt-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.tt-modal-box { position: relative; width: 100%; max-width: 512px; padding: 40px; z-index: 1; }
@media (min-width: 768px) { .tt-modal-box { padding: 40px; } }
.tt-modal-close { position: absolute; top: 24px; right: 24px; color: rgba(245,241,232,0.6); background: none; border: none; cursor: pointer; }
.tt-modal-close:hover { color: var(--tt-ivory); }
.tt-modal-box label { display: block; font-size: 0.875rem; color: rgba(245,241,232,0.7); margin-bottom: 6px; }
.tt-modal-box input, .tt-modal-box textarea {
  width: 100%; border-radius: 12px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05); padding: 10px 16px; color: var(--tt-ivory);
  outline: none; font-family: var(--font-sans); font-size: 0.9375rem;
}
.tt-modal-box input::placeholder, .tt-modal-box textarea::placeholder { color: rgba(245,241,232,0.3); }
.tt-modal-box input:focus, .tt-modal-box textarea:focus { border-color: rgba(212,175,55,0.6); }
.tt-modal-field { margin-bottom: 16px; }
.tt-modal-submit {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; background: var(--tt-gold); color: var(--tt-abyss); font-weight: 600;
  padding: 12px 24px; border: none; cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(212,175,55,0.6);
}
.tt-modal-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.tt-modal-error {
  display: flex; gap: 8px; border: 1px solid rgba(194,59,59,0.3); background: rgba(194,59,59,0.1);
  border-radius: 12px; padding: 12px 16px; font-size: 0.875rem; color: rgba(245,241,232,0.8); margin-bottom: 16px;
}
.tt-modal-success { text-align: center; padding: 24px 0; }
.tt-modal-success h3 { font-size: 1.5rem; font-weight: 600; color: var(--tt-ivory); margin-top: 20px; }
.tt-modal-success p { margin-top: 12px; color: rgba(245,241,232,0.7); }

/* Scroll reveal (progressive enhancement) */
.tt-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.tt-reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .tt-reveal { opacity: 1; transform: none; transition: none; } }
