/* ============================================================
   FLTF BASE — Design Tokens & CSS Custom Properties
   Fisheries & Livestock Trading Federation
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Syne:wght@600;700;800&display=swap');

:root {
  /* ── Brand Palette ── */
  --fltf-primary:        #00457C;   /* deep navy blue */
  --fltf-primary-dark:   #002E56;
  --fltf-primary-light:  #1A6FA8;
  --fltf-accent:         #0099CC;   /* bright water blue */
  --fltf-accent-light:   #B3E5F5;
  --fltf-sky:            #E8F4FD;   /* lightest tint */

  /* ── Neutrals ── */
  --fltf-white:          #FFFFFF;
  --fltf-off-white:      #F7FAFD;
  --fltf-grey-50:        #F0F4F8;
  --fltf-grey-100:       #E2EAF0;
  --fltf-grey-200:       #C8D6E2;
  --fltf-grey-400:       #8BAABF;
  --fltf-grey-600:       #4A6A82;
  --fltf-grey-800:       #1E3448;
  --fltf-text:           #1A2E3D;
  --fltf-text-muted:     #5A7A90;

  /* ── Semantic ── */
  --fltf-success:        #0B7A4E;
  --fltf-success-bg:     #E6F5EF;
  --fltf-danger:         #B91C1C;
  --fltf-danger-bg:      #FEF2F2;
  --fltf-warning:        #B45309;
  --fltf-warning-bg:     #FFFBEB;
  --fltf-info:           #0C6E9E;
  --fltf-info-bg:        #EFF8FF;

  /* ── Gradients ── */
  --fltf-gradient:       linear-gradient(135deg, #002E56 0%, #00457C 55%, #1A6FA8 100%);
  --fltf-gradient-soft:  linear-gradient(135deg, #E8F4FD 0%, #B3E5F5 100%);
  --fltf-gradient-card:  linear-gradient(160deg, #FFFFFF 0%, #F0F7FF 100%);

  /* ── Typography ── */
  --font-display:        'Syne', sans-serif;
  --font-body:           'DM Sans', sans-serif;

  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semi:    600;
  --fw-bold:    700;

  /* ── 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;

  /* ── Radii ── */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  22px;
  --radius-pill: 999px;

  /* ── Shadows ── */
  --shadow-xs:  0 1px 3px rgba(0, 69, 124, 0.08);
  --shadow-sm:  0 2px 8px rgba(0, 69, 124, 0.10);
  --shadow-md:  0 4px 16px rgba(0, 69, 124, 0.14);
  --shadow-lg:  0 8px 32px rgba(0, 69, 124, 0.18);
  --shadow-xl:  0 16px 48px rgba(0, 69, 124, 0.22);

  /* ── Transitions ── */
  --transition-fast:   all 0.15s ease;
  --transition-normal: all 0.25s ease;
  --transition-slow:   all 0.4s ease;

  /* ── Z-index Scale ── */
  --z-base:    1;
  --z-raised:  10;
  --z-overlay: 100;
  --z-modal:   1000;
  --z-toast:   2000;
}

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  color: var(--fltf-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--fltf-text);
  margin-bottom: var(--space-4);
}

a {
  color: var(--fltf-accent);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--fltf-primary);
}

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

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.text-primary    { color: var(--fltf-primary) !important; }
.text-accent     { color: var(--fltf-accent) !important; }
.text-muted      { color: var(--fltf-text-muted) !important; }
.text-white      { color: var(--fltf-white) !important; }

.bg-primary      { background: var(--fltf-gradient) !important; }
.bg-soft         { background: var(--fltf-sky) !important; }
.bg-white        { background: var(--fltf-white) !important; }
.bg-off-white    { background: var(--fltf-off-white) !important; }

.fw-medium       { font-weight: var(--fw-medium) !important; }
.fw-semi         { font-weight: var(--fw-semi) !important; }
.fw-bold         { font-weight: var(--fw-bold) !important; }

.rounded-fltf    { border-radius: var(--radius-lg) !important; }
.shadow-fltf     { box-shadow: var(--shadow-md) !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
