/* style.css — VJ Group Trading Co. Design System */

/* ============================================
   DESIGN TOKENS
   ============================================ */

:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Fonts */
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================
   VJ GROUP CUSTOM PALETTE — LIGHT MODE
   ============================================ */
:root, [data-theme="light"] {
  /* Surfaces */
  --color-bg:             #FFFFFF;
  --color-surface:        #F5F5F5;
  --color-surface-2:      #FAFAFA;
  --color-surface-offset: #F0F0F0;
  --color-surface-offset-2: #E8E8E8;
  --color-surface-dynamic: #E0E0E0;
  --color-divider:        #D9D9D9;
  --color-border:         #CCCCCC;

  /* Text */
  --color-text:           #3D3D3D;
  --color-text-muted:     #8C8C8C;
  --color-text-faint:     #BBBBBB;
  --color-text-inverse:   #FFFFFF;

  /* Primary Accent — VJ Orange */
  --color-primary:        #FF8C00;
  --color-primary-hover:  #E07B00;
  --color-primary-active: #CC7000;
  --color-primary-light:  #FFF3E0;
  --color-primary-highlight: #FFE0B2;

  /* Dark Gray */
  --color-dark:           #3D3D3D;
  --color-dark-hover:     #2D2D2D;
  --color-dark-active:    #1A1A1A;

  /* Semantic */
  --color-success:        #437A22;
  --color-error:          #D32F2F;
  --color-warning:        #F57C00;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(61, 61, 61, 0.06), 0 1px 2px rgba(61, 61, 61, 0.04);
  --shadow-md: 0 4px 12px rgba(61, 61, 61, 0.08), 0 2px 4px rgba(61, 61, 61, 0.04);
  --shadow-lg: 0 12px 32px rgba(61, 61, 61, 0.12), 0 4px 8px rgba(61, 61, 61, 0.06);
}

/* ============================================
   VJ GROUP CUSTOM PALETTE — DARK MODE
   ============================================ */
[data-theme="dark"] {
  --color-bg:             #1A1A1A;
  --color-surface:        #242424;
  --color-surface-2:      #2D2D2D;
  --color-surface-offset: #1F1F1F;
  --color-surface-offset-2: #333333;
  --color-surface-dynamic: #3D3D3D;
  --color-divider:        #3D3D3D;
  --color-border:         #4A4A4A;

  --color-text:           #E8E8E8;
  --color-text-muted:     #A0A0A0;
  --color-text-faint:     #666666;
  --color-text-inverse:   #1A1A1A;

  --color-primary:        #FFA940;
  --color-primary-hover:  #FFB84D;
  --color-primary-active: #FF9800;
  --color-primary-light:  #332A1A;
  --color-primary-highlight: #4D3D1A;

  --color-dark:           #E8E8E8;
  --color-dark-hover:     #F5F5F5;
  --color-dark-active:    #FFFFFF;

  --color-success:        #6DAA45;
  --color-error:          #EF5350;
  --color-warning:        #FFB74D;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #1A1A1A;
    --color-surface:        #242424;
    --color-surface-2:      #2D2D2D;
    --color-surface-offset: #1F1F1F;
    --color-surface-offset-2: #333333;
    --color-surface-dynamic: #3D3D3D;
    --color-divider:        #3D3D3D;
    --color-border:         #4A4A4A;
    --color-text:           #E8E8E8;
    --color-text-muted:     #A0A0A0;
    --color-text-faint:     #666666;
    --color-text-inverse:   #1A1A1A;
    --color-primary:        #FFA940;
    --color-primary-hover:  #FFB84D;
    --color-primary-active: #FF9800;
    --color-primary-light:  #332A1A;
    --color-primary-highlight: #4D3D1A;
    --color-dark:           #E8E8E8;
    --color-dark-hover:     #F5F5F5;
    --color-dark-active:    #FFFFFF;
    --color-success:        #6DAA45;
    --color-error:          #EF5350;
    --color-warning:        #FFB74D;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  }
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container--narrow {
  max-width: var(--content-default);
}

.section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

.section--surface {
  background: var(--color-surface);
}

.section--dark {
  background: var(--color-dark);
  color: var(--color-text-inverse);
}

.section--primary {
  background: var(--color-primary);
  color: #FFFFFF;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.heading-xl {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}

.heading-lg {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-family: var(--font-display);
}

.heading-md {
  font-size: var(--text-lg);
  font-weight: 600;
  font-family: var(--font-display);
}

.text-body {
  font-size: var(--text-base);
  line-height: 1.6;
}

.text-sm {
  font-size: var(--text-sm);
}

.text-xs {
  font-size: var(--text-xs);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-center { text-align: center; }
.text-left { text-align: left; }

.label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 60px;
  width: auto;
}

/* Swap header logo for dark mode */
.logo .logo-dark { display: none; }
[data-theme="dark"] .logo .logo-light { display: none; }
[data-theme="dark"] .logo .logo-dark { display: block; }

.nav-desktop {
  display: none;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-6);
  }
}

.nav-desktop a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  padding: var(--space-1) 0;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-interactive);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%;
}

.nav-desktop a.active {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive),
              background var(--transition-interactive);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

/* Mobile hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  border-radius: var(--radius-md);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .hamburger { display: none; }
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.mobile-nav a:hover {
  color: var(--color-primary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn--primary {
  background: var(--color-primary);
  color: #FFFFFF;
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--outline {
  background: transparent;
  color: var(--color-dark);
  border: 2px solid var(--color-dark);
}

.btn--outline:hover {
  background: var(--color-dark);
  color: var(--color-text-inverse);
}

.btn--white {
  background: #FFFFFF;
  color: var(--color-primary);
}

.btn--white:hover {
  background: #F5F5F5;
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero--full {
  min-height: 85vh;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.82) 0%, rgba(61, 61, 61, 0.6) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-16) var(--space-4);
}

.hero__content h1 {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  max-width: 18ch;
}

.hero__content p {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.85);
  max-width: 50ch;
  margin-bottom: var(--space-6);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.card__icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}

.card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.card p {
  color: var(--color-text-muted);
  line-height: 1.6;
}

.card a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  margin-top: var(--space-3);
}

.card a:hover {
  text-decoration: underline;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

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

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

@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Two-column text+image */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.split--reverse .split__image {
  order: -1;
}

@media (min-width: 768px) {
  .split--reverse .split__image {
    order: 1;
  }
}

.split__image img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ============================================
   STATS / TRUST METRICS
   ============================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  text-align: center;
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat__number {
  font-size: var(--text-2xl);
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--color-primary);
}

[data-theme="dark"] .section--dark .stat__number,
.section--dark .stat__number {
  color: var(--color-primary);
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.section--dark .stat__label {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   PROCESS STEPS
   ============================================ */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  counter-reset: step;
}

@media (min-width: 640px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .process-steps--3 { grid-template-columns: repeat(3, 1fr); }
  .process-steps--4 { grid-template-columns: repeat(4, 1fr); }
}

.step {
  counter-increment: step;
  position: relative;
  padding: var(--space-6);
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.step h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.step p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ============================================
   FEATURES LIST
   ============================================ */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  margin-top: 2px;
}

.feature-list strong {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-1);
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.category-card {
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card__icon {
  padding: var(--space-6) var(--space-6) var(--space-3);
  color: var(--color-primary);
}

.category-card__icon svg {
  width: 40px;
  height: 40px;
}

.category-card__body {
  padding: 0 var(--space-6) var(--space-6);
}

.category-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.category-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.category-card .buyers {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 500;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: var(--text-base);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
  outline: none;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-12) var(--space-4) var(--space-6);
}

[data-theme="dark"] .site-footer {
  background: #111111;
}

.footer-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-grid h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-grid a {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: var(--text-sm);
  padding: var(--space-1) 0;
  transition: color var(--transition-interactive);
}

.footer-grid a:hover {
  color: var(--color-primary);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin-top: var(--space-2);
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--color-primary);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }

.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

.img-rounded {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.orange-line {
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 200;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-2);
}
