/* ============================================================
   TRADEHUB B2B - CSS VARIABLES & RESET
   ============================================================ */

:root {
  /* Core palette */
  --primary:      #1C6D9C;
  --primary-dark: #0A4A75;
  --primary-soft: #E8F5FB;
  --primary-glow: rgba(79, 163, 199, 0.18);
  --primary-border: rgba(28, 109, 156, 0.26);

  --green:        #F97316;
  --green-dark:   #D95E0E;
  --green-light:  #FFA94D;
  --green-glow:   rgba(249, 115, 22, 0.16);
  --green-border: rgba(249, 115, 22, 0.28);

  /* Neutrals */
  --white:        #FFFFFF;
  --off-white:    #F8FBFD;
  --gray-50:      #F8FBFD;
  --gray-100:     #F1F6F9;
  --gray-200:     #E6E6E6;
  --gray-300:     #D5DEE5;
  --gray-400:     #90A4B2;
  --gray-500:     #60798B;
  --gray-600:     #436171;
  --gray-700:     #26495F;
  --gray-800:     #163547;
  --text:         #083A5C;
  --text-muted:   #4A6A7F;

  /* Semantic colors */
  --success:      #1C6D9C;
  --success-bg:   #E8F5FB;
  --success-text: #0A4A75;
  --error:        #EF4444;
  --error-bg:     #FEE2E2;
  --error-text:   #991B1B;
  --warning:      #F97316;
  --warning-bg:   #FFF1E6;
  --warning-text: #D95E0E;
  --info:         #1C6D9C;
  --info-bg:      #E8F5FB;
  --info-text:    #0A4A75;

  /* Legacy aliases retained for safe incremental restyling */
  --navy:         #0A4A75;
  --navy-mid:     #083A5C;
  --navy-light:   #1C6D9C;
  --navy-border:  #083A5C;
  --navy-glow:    rgba(8, 58, 92, 0.10);

  /* Typography */
  --font-head:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Radius */
  --radius-sm:  6px;
  --radius:     8px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:   0 1px 2px rgba(8, 58, 92, 0.04);
  --shadow-sm:   0 1px 3px rgba(8, 58, 92, 0.08), 0 1px 2px rgba(8, 58, 92, 0.05);
  --shadow-md:   0 8px 24px rgba(8, 58, 92, 0.10), 0 2px 6px rgba(8, 58, 92, 0.05);
  --shadow-lg:   0 16px 40px rgba(8, 58, 92, 0.14), 0 4px 8px rgba(8, 58, 92, 0.08);
  --shadow-xl:   0 24px 60px rgba(8, 58, 92, 0.22);
  --shadow-green: 0 12px 28px rgba(249, 115, 22, 0.24);

  /* Motion */
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-fast: 0.20s var(--ease-standard);
  --transition:      0.20s var(--ease-standard);
  --transition-slow: 0.35s var(--ease-standard);
  --hover-lift: translateY(-4px);
  --hover-scale-soft: 1.03;

  /* Layout */
  --nav-height:    82px;
  --container-max: 1240px;
  --sidebar-width: 250px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
}

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

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: var(--font-body);
  font-size: 14px;
}

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

ul,
ol {
  list-style: none;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-4);
  }
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection {
  background: var(--primary-soft);
  color: var(--text);
}
