/**
 * ASO HQ Design System — colors_and_type.css
 * Source: aso-hq-authority-strategy-office-design/DESIGN.md + react/globals.css
 * All design tokens as CSS custom properties. Import this file to use the full system.
 */

/* =====================================================================
   FONTS — loaded locally from fonts/
   ===================================================================== */

@font-face {
  font-family: 'Abyssinica SIL';
  src: url('./fonts/abyssinica-sil-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('./fonts/inter-100.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('./fonts/inter-200.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('./fonts/inter-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('./fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('./fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('./fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('./fonts/inter-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('./fonts/inter-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('./fonts/inter-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

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

:root {

  /* -------------------------------------------------------------------
     COLOR — Neutral
     ------------------------------------------------------------------- */
  --color-white:             #FFFFFF;
  --color-neutral-lightest:  #F2F2F2;
  --color-neutral-lighter:   #D9D9DA;
  --color-neutral-light:     #B4B3B5;
  --color-neutral:           #828185;
  --color-neutral-dark:      #504E54;
  --color-neutral-darker:    #1E1C23;
  --color-neutral-darkest:   #05030B;

  /* Numeric aliases (shade-0 = lightest) */
  --color-neutral-0:  var(--color-white);
  --color-neutral-1:  var(--color-neutral-lightest);
  --color-neutral-2:  var(--color-neutral-lighter);
  --color-neutral-3:  var(--color-neutral-light);
  --color-neutral-4:  var(--color-neutral);
  --color-neutral-5:  var(--color-neutral-dark);
  --color-neutral-6:  var(--color-neutral-darker);
  --color-neutral-7:  var(--color-neutral-darkest);

  /* Semi-transparent whites */
  --color-white-5:   color-mix(in srgb, #FFFFFF, transparent 95%);
  --color-white-10:  color-mix(in srgb, #FFFFFF, transparent 90%);
  --color-white-15:  color-mix(in srgb, #FFFFFF, transparent 85%);
  --color-white-20:  color-mix(in srgb, #FFFFFF, transparent 80%);
  --color-white-30:  color-mix(in srgb, #FFFFFF, transparent 70%);
  --color-white-40:  color-mix(in srgb, #FFFFFF, transparent 60%);
  --color-white-50:  color-mix(in srgb, #FFFFFF, transparent 50%);
  --color-white-60:  color-mix(in srgb, #FFFFFF, transparent 40%);

  /* Semi-transparent neutrals */
  --color-neutral-darkest-5:  color-mix(in srgb, #05030B, transparent 95%);
  --color-neutral-darkest-10: color-mix(in srgb, #05030B, transparent 90%);
  --color-neutral-darkest-20: color-mix(in srgb, #05030B, transparent 80%);
  --color-neutral-darkest-30: color-mix(in srgb, #05030B, transparent 70%);
  --color-neutral-darkest-50: color-mix(in srgb, #05030B, transparent 50%);

  /* -------------------------------------------------------------------
     COLOR — Royal Blue (primary chromatic)
     ------------------------------------------------------------------- */
  --color-royal-blue-lightest: #E9EFFD;
  --color-royal-blue-lighter:  #D3DFFB;
  --color-royal-blue-light:    #6691F1;
  --color-royal-blue:          #2563EB;
  --color-royal-blue-dark:     #1D4FBC;
  --color-royal-blue-darker:   #0E275E;
  --color-royal-blue-darkest:  #0B1D46;

  /* -------------------------------------------------------------------
     COLOR — Roman (red)
     ------------------------------------------------------------------- */
  --color-roman-lightest: #FBEDED;
  --color-roman-lighter:  #F7DBDB;
  --color-roman-light:    #E48383;
  --color-roman:          #D94F4F;
  --color-roman-dark:     #AD3F3F;
  --color-roman-darker:   #561F1F;
  --color-roman-darkest:  #411717;

  /* -------------------------------------------------------------------
     COLOR — Jungle Green
     ------------------------------------------------------------------- */
  --color-jungle-green-lightest: #E9F8F2;
  --color-jungle-green-lighter:  #D4F2E5;
  --color-jungle-green-light:    #6AD2A4;
  --color-jungle-green:          #2BBF7E;
  --color-jungle-green-dark:     #229864;
  --color-jungle-green-darker:   #114C32;
  --color-jungle-green-darkest:  #0C3925;

  /* -------------------------------------------------------------------
     COLOR — Cream Can (yellow)
     ------------------------------------------------------------------- */
  --color-cream-can-lightest: #FDF9ED;
  --color-cream-can-lighter:  #FCF4DB;
  --color-cream-can-light:    #F5D981;
  --color-cream-can:          #F2C94C;
  --color-cream-can-dark:     #C1A03C;
  --color-cream-can-darker:   #60501E;
  --color-cream-can-darkest:  #483C16;

  /* -------------------------------------------------------------------
     COLOR — Purple Heart
     ------------------------------------------------------------------- */
  --color-purple-heart-lightest: #F0EBFA;
  --color-purple-heart-lighter:  #E1D7F6;
  --color-purple-heart-light:    #9875E2;
  --color-purple-heart:          #6D3BD6;
  --color-purple-heart-dark:     #572FAB;
  --color-purple-heart-darker:   #2B1755;
  --color-purple-heart-darkest:  #201140;

  /* -------------------------------------------------------------------
     COLOR — Semantic (Scheme defaults to Scheme 1 / dark)
     ------------------------------------------------------------------- */
  --color-scheme-background: var(--color-neutral-darkest);
  --color-scheme-foreground: var(--color-neutral-darkest);
  --color-scheme-text:       var(--color-white);
  --color-scheme-border:     var(--color-white);
  --color-scheme-btn-text:   var(--color-white);

  /* -------------------------------------------------------------------
     TYPOGRAPHY — Font stacks
     ------------------------------------------------------------------- */
  --font-heading: 'Abyssinica SIL', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* -------------------------------------------------------------------
     TYPOGRAPHY — Type scale (mobile-first)
     Sizes match react/globals.css Tailwind theme values
     ------------------------------------------------------------------- */
  --text-h1:    3rem;     /* 48px mobile  → 84px (5.25rem) desktop */
  --text-h1-lh: 1.1;
  --text-h1-ls: 0.01em;

  --text-h2:    2.75rem;  /* 44px mobile → 60px (3.75rem) desktop */
  --text-h2-lh: 1.2;
  --text-h2-ls: 0.01em;

  --text-h3:    2rem;     /* 32px mobile → 48px (3rem) desktop */
  --text-h3-lh: 1.2;
  --text-h3-ls: 0.01em;

  --text-h4:    1.5rem;   /* 24px mobile → 40px (2.5rem) desktop */
  --text-h4-lh: 1.2;
  --text-h4-ls: 0.01em;

  --text-h5:    1.25rem;  /* 20px mobile → 32px (2rem) desktop */
  --text-h5-lh: 1.2;
  --text-h5-ls: 0.01em;

  --text-h6:    1.125rem; /* 18px mobile → 26px (1.625rem) desktop */
  --text-h6-lh: 1.2;
  --text-h6-ls: 0.01em;

  --text-large:   1.125rem; /* 18px mobile → 26px desktop */
  --text-large-lh: 1.6;

  --text-medium:   1rem;   /* 16px mobile → 20px desktop */
  --text-medium-lh: 1.6;

  --text-regular:   0.875rem; /* 14px mobile → 18px desktop */
  --text-regular-lh: 1.6;

  --text-small:   0.75rem;  /* 12px mobile → 16px desktop */
  --text-small-lh: 1.6;

  --text-tiny:   0.625rem;  /* 10px mobile → 12px desktop */
  --text-tiny-lh: 1.6;

  /* -------------------------------------------------------------------
     LAYOUT & SPACING
     ------------------------------------------------------------------- */
  --container-max: 80rem;         /* 1280px */
  --section-px:    5%;
  --section-py-sm: 4rem;          /* py-16 = 64px */
  --section-py-md: 6rem;          /* py-24 = 96px */
  --section-py-lg: 7rem;          /* py-28 = 112px */

  --spacing-4:  1rem;
  --spacing-5:  1.25rem;
  --spacing-6:  1.5rem;
  --spacing-8:  2rem;
  --spacing-12: 3rem;
  --spacing-18: 4.5rem;
  --spacing-20: 5rem;
  --spacing-24: 6rem;
  --spacing-28: 7rem;
  --spacing-30: 7.5rem;

  /* -------------------------------------------------------------------
     BORDERS & RADIUS
     ------------------------------------------------------------------- */
  --radius-button:  0rem;    /* Sharp — no rounding on buttons */
  --radius-badge:   0rem;    /* Sharp — no rounding on badges/tags */
  --radius-input:   0rem;    /* Sharp — no rounding on form inputs */
  --radius-card:    0.5rem;  /* 8px */
  --radius-image:   0.5rem;  /* 8px */

  --border-width-card:    2px;
  --border-width-divider: 2px;
  --border-width-button:  2px;

  /* -------------------------------------------------------------------
     BUTTON GRADIENTS
     ------------------------------------------------------------------- */
  --gradient-button-default:
    linear-gradient(135deg, var(--color-royal-blue) 20%, var(--color-roman));
  --gradient-button-default-hover:
    linear-gradient(135deg, var(--color-royal-blue-dark), var(--color-roman-dark));

  /* -------------------------------------------------------------------
     ANIMATIONS
     ------------------------------------------------------------------- */
  --duration-fast:   0.1s;
  --duration-normal: 0.2s;
  --duration-slow:   0.4s;
  --duration-tabs:   0.6s;
  --easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --easing-out:      ease-out;
  --easing-linear:   linear;

  /* Marquee/loop timings */
  --duration-marquee: 30s;
  --duration-loop:    20s;
}

/* =====================================================================
   DESKTOP TYPE SCALE (≥ 992px)
   ===================================================================== */

@media (min-width: 992px) {
  :root {
    --text-h1:      5.25rem;  /* 84px */
    --text-h2:      3.75rem;  /* 60px */
    --text-h3:      3rem;     /* 48px */
    --text-h4:      2.5rem;   /* 40px */
    --text-h5:      2rem;     /* 32px */
    --text-h6:      1.625rem; /* 26px */
    --text-large:   1.625rem; /* 26px */
    --text-medium:  1.25rem;  /* 20px */
    --text-regular: 1.125rem; /* 18px */
    --text-small:   1rem;     /* 16px */
    --text-tiny:    0.75rem;  /* 12px */
  }
}

/* =====================================================================
   COLOR SCHEMES
   Apply as a class to any <section> or container
   ===================================================================== */

.scheme-1 {
  /* Dark — primary site scheme */
  --color-scheme-background: var(--color-neutral-darkest);  /* #05030B */
  --color-scheme-foreground: var(--color-neutral-darkest);
  --color-scheme-text:       var(--color-white);
  --color-scheme-border:     var(--color-white);
  --color-scheme-btn-text:   var(--color-white);
  background-color: var(--color-scheme-background);
  color: var(--color-scheme-text);
}

.scheme-2 {
  /* Light Blue — used for Navbar */
  --color-scheme-background: var(--color-royal-blue-lightest); /* #E9EFFD */
  --color-scheme-foreground: var(--color-royal-blue-lightest);
  --color-scheme-text:       var(--color-neutral-darkest);
  --color-scheme-border:     var(--color-neutral-darkest);
  --color-scheme-btn-text:   var(--color-white);
  background-color: var(--color-scheme-background);
  color: var(--color-scheme-text);
}

.scheme-3 {
  /* Lighter Blue */
  --color-scheme-background: var(--color-royal-blue-lighter); /* #D3DFFB */
  --color-scheme-foreground: var(--color-royal-blue-lighter);
  --color-scheme-text:       var(--color-neutral-darkest);
  --color-scheme-border:     var(--color-neutral-darkest);
  --color-scheme-btn-text:   var(--color-white);
  background-color: var(--color-scheme-background);
  color: var(--color-scheme-text);
}

.scheme-4 {
  /* Medium Gray */
  --color-scheme-background: var(--color-neutral-dark); /* #504E54 */
  --color-scheme-foreground: var(--color-neutral-dark);
  --color-scheme-text:       var(--color-white);
  --color-scheme-border:     var(--color-white);
  --color-scheme-btn-text:   var(--color-white);
  background-color: var(--color-scheme-background);
  color: var(--color-scheme-text);
}

/* =====================================================================
   BASE ELEMENT STYLES
   ===================================================================== */

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

body {
  font-family: var(--font-body);
  font-size: var(--text-regular);
  line-height: var(--text-regular-lh);
  color: var(--color-neutral-darkest);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  line-height: var(--text-h1-lh);
  letter-spacing: var(--text-h1-ls);
  font-weight: 400;
}
h2 {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  line-height: var(--text-h2-lh);
  letter-spacing: var(--text-h2-ls);
  font-weight: 400;
}
h3 {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  line-height: var(--text-h3-lh);
  letter-spacing: var(--text-h3-ls);
  font-weight: 400;
}
h4 {
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  line-height: var(--text-h4-lh);
  letter-spacing: var(--text-h4-ls);
  font-weight: 400;
}
h5 {
  font-family: var(--font-heading);
  font-size: var(--text-h5);
  line-height: var(--text-h5-lh);
  letter-spacing: var(--text-h5-ls);
  font-weight: 400;
}
h6 {
  font-family: var(--font-heading);
  font-size: var(--text-h6);
  line-height: var(--text-h6-lh);
  letter-spacing: var(--text-h6-ls);
  font-weight: 400;
}

p {
  font-family: var(--font-body);
  font-size: var(--text-regular);
  line-height: var(--text-regular-lh);
}

/* =====================================================================
   UTILITY: BUTTON BASE
   ===================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: var(--radius-button);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--text-regular);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--easing-out);
  border: none;
  outline: none;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
}

/* Default — gradient */
.btn-default {
  background: var(--gradient-button-default);
  color: var(--color-white);
}
.btn-default:hover {
  background: var(--gradient-button-default-hover);
}

/* Secondary — outlined */
.btn-secondary {
  background: transparent;
  border: var(--border-width-button) solid var(--color-neutral-darkest);
  color: var(--color-neutral-darkest);
}
.btn-secondary:hover {
  background: var(--color-neutral-darkest-5);
}

/* Secondary on dark scheme */
.scheme-1 .btn-secondary,
.scheme-4 .btn-secondary {
  border-color: var(--color-white);
  color: var(--color-white);
}
.scheme-1 .btn-secondary:hover,
.scheme-4 .btn-secondary:hover {
  background: var(--color-white-10);
}

/* Link */
.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-scheme-text, var(--color-neutral-darkest));
  gap: 0.5rem;
}

/* =====================================================================
   UTILITY: CONTAINER
   ===================================================================== */

.container {
  margin-inline: auto;
  max-width: var(--container-max);
  width: 100%;
}

/* =====================================================================
   UTILITY: SECTION PADDING
   ===================================================================== */

.section-padding {
  padding: var(--section-py-sm) var(--section-px);
}

@media (min-width: 768px) {
  .section-padding {
    padding: var(--section-py-md) var(--section-px);
  }
}

@media (min-width: 992px) {
  .section-padding {
    padding: var(--section-py-lg) var(--section-px);
  }
}

/* =====================================================================
   UTILITY: BADGE / TAG
   ===================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-badge);
  border: var(--border-width-card) solid var(--color-scheme-border, var(--color-neutral-darkest));
  font-family: var(--font-body);
  font-size: var(--text-tiny);
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-scheme-text, var(--color-neutral-darkest));
}

/* =====================================================================
   UTILITY: FORM INPUTS
   ===================================================================== */

.input {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-input);
  border: var(--border-width-card) solid currentColor;
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--text-regular);
  color: inherit;
  transition: border-color var(--duration-normal) var(--easing-out);
  outline: none;
}

.input:focus {
  border-color: var(--color-royal-blue);
}

.input::placeholder {
  color: var(--color-neutral);
}

/* =====================================================================
   UTILITY: DIVIDER
   ===================================================================== */

.divider {
  height: var(--border-width-divider);
  width: 100%;
  background-color: var(--color-scheme-border, var(--color-neutral-darkest));
}

/* =====================================================================
   UTILITY: IMAGE
   ===================================================================== */

.img-rounded {
  border-radius: var(--radius-image);
  object-fit: cover;
}

/* =====================================================================
   ANIMATIONS
   ===================================================================== */

@keyframes marquee-horizontally {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes loop-horizontally {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-marquee {
  animation: marquee-horizontally var(--duration-marquee) linear infinite;
}

.animate-loop {
  animation: loop-horizontally var(--duration-loop) linear infinite;
}
