/* =========================================================
   Modulit Design System — Foundations
   Source: Modulit_guideline_eng.pdf (Modul IT Solutions, modulit.eu)
   ========================================================= */

/* ----- Google Fonts substitute for AvantGardeCTT -----
   AvantGardeCTT is a Cyrillic-extended clone of ITC Avant Garde Gothic
   — a geometric sans built on perfect circles and straight strokes.
   Jost is the closest free, multi-weight match on Google Fonts
   (geometric sans, similar x-height, very close letterforms).
   FLAG: swap in the real AvantGardeCTT .otf/.ttf files when available.
*/
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,400;0,500;0,700;1,400;1,700&display=swap');

:root {
  /* ===== BRAND COLORS ===== */
  /* Core (from PDF page 2): */
  --brand-orange:        #f7941d;  /* Bright Orange — Pantone 1495C — CMYK 0/50/100/0 */
  --brand-dark-gray:     #414042;  /* Dark Gray — Pantone Black 7C — CMYK 0/0/0/90 */
  --brand-white:         #ffffff;

  /* Extended (from observed brand usage on LinkedIn / webinar templates): */
  --brand-navy:          #0a1d3a;  /* Deep navy — used as primary template background */
  --brand-navy-light:    #14305f;  /* Mid navy — for layering on navy */
  --brand-accent-blue:   #2e9cff;  /* Bright accent blue — webinar / tech-product callouts */

  /* ===== ORANGE SCALE (tonal derivations, oklch-based) ===== */
  --orange-50:           #fff5e8;
  --orange-100:          #ffe6c7;
  --orange-200:          #ffd29a;
  --orange-300:          #ffb866;
  --orange-400:          #fca33d;
  --orange-500:          #f7941d;  /* brand */
  --orange-600:          #e07d0a;
  --orange-700:          #b86205;
  --orange-800:          #884800;
  --orange-900:          #5a2f00;

  /* ===== GRAY SCALE ===== */
  --gray-50:             #f6f6f7;
  --gray-100:            #ebebec;
  --gray-200:            #d4d4d6;
  --gray-300:            #b3b3b6;
  --gray-400:            #8b8b8e;
  --gray-500:            #6a6a6d;
  --gray-600:            #515153;
  --gray-700:            #414042;  /* brand dark gray */
  --gray-800:            #2c2c2e;
  --gray-900:            #1a1a1b;
  --black:               #000000;

  /* ===== SEMANTIC FOREGROUND / BACKGROUND ===== */
  --bg:                  var(--brand-white);
  --bg-alt:              var(--gray-50);
  --bg-inverse:          var(--brand-dark-gray);
  --bg-navy:             var(--brand-navy);
  --bg-accent:           var(--brand-orange);

  --fg:                  var(--brand-dark-gray);     /* body on light */
  --fg-muted:            var(--gray-500);
  --fg-inverse:          var(--brand-white);          /* body on dark / orange */
  --fg-accent:           var(--brand-orange);

  --border:              var(--gray-200);
  --border-strong:       var(--gray-400);
  --border-dark:         var(--brand-dark-gray);

  /* ===== TYPOGRAPHY ===== */
  --font-sans:           "Jost", "AvantGardeCTT", "ITC Avant Garde Gothic",
                         "Century Gothic", "Futura", system-ui, sans-serif;
  --font-display:        var(--font-sans);  /* one type family, by spec */
  --font-mono:           "JetBrains Mono", "SF Mono", Consolas, monospace;

  /* Weights actually used in brand: Regular(400), Italic(400i), Bold(700), Bold Italic(700i) */
  --fw-regular:          400;
  --fw-medium:           500;   /* extension for UI affordances */
  --fw-bold:             700;

  /* Type scale — geometric, tight; matches the spec's "headline, body, message" hierarchy */
  --fs-12: 0.75rem;        /* 12  caption / fine print  */
  --fs-14: 0.875rem;       /* 14  small / label         */
  --fs-16: 1rem;           /* 16  body                  */
  --fs-18: 1.125rem;       /* 18  body large            */
  --fs-22: 1.375rem;       /* 22  lead                  */
  --fs-28: 1.75rem;        /* 28  h4                    */
  --fs-36: 2.25rem;        /* 36  h3                    */
  --fs-48: 3rem;           /* 48  h2                    */
  --fs-64: 4rem;           /* 64  h1                    */
  --fs-96: 6rem;           /* 96  display               */

  --lh-tight:            1.05;
  --lh-snug:             1.2;
  --lh-normal:           1.45;
  --lh-relaxed:          1.6;

  --ls-tight:            -0.01em;
  --ls-normal:           0em;
  --ls-wide:             0.04em;
  --ls-wider:            0.14em;       /* for ALL-CAPS taglines */

  /* ===== SPACING (4-px base) ===== */
  --s-1: 0.25rem;   /*  4  */
  --s-2: 0.5rem;    /*  8  */
  --s-3: 0.75rem;   /* 12  */
  --s-4: 1rem;      /* 16  */
  --s-5: 1.25rem;   /* 20  */
  --s-6: 1.5rem;    /* 24  */
  --s-8: 2rem;      /* 32  */
  --s-10: 2.5rem;   /* 40  */
  --s-12: 3rem;     /* 48  */
  --s-16: 4rem;     /* 64  */
  --s-20: 5rem;     /* 80  */
  --s-24: 6rem;     /* 96  */

  /* ===== RADII — sharp identity, but small softening on UI ===== */
  --r-none: 0;
  --r-xs:   2px;
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-pill: 999px;

  /* Brand-correct surfaces are SHARP (logo is built from rectangles).
     Use --r-none on hero cards, business-card-like surfaces, banners.
     Use --r-sm / --r-md on app UI affordances only. */

  /* ===== SHADOWS — restrained, never colored ===== */
  --shadow-1: 0 1px 2px rgba(65, 64, 66, 0.08);
  --shadow-2: 0 4px 12px rgba(65, 64, 66, 0.10);
  --shadow-3: 0 12px 32px rgba(65, 64, 66, 0.14);
  --shadow-inset: inset 0 0 0 1px rgba(65, 64, 66, 0.08);

  /* ===== MOTION ===== */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:    cubic-bezier(0.55, 0, 0.68, 0.06);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --d-fast:     120ms;
  --d-base:     200ms;
  --d-slow:     360ms;

  /* ===== LAYOUT ===== */
  --container-sm:  640px;
  --container-md:  960px;
  --container-lg:  1200px;
  --container-xl:  1440px;
}

/* =========================================================
   Semantic element styles — opinionated, brand-correct defaults
   ========================================================= */

html { font-family: var(--font-sans); color: var(--fg); background: var(--bg); }
body { font-size: var(--fs-16); line-height: var(--lh-normal); margin: 0; }

/* Display + Headings — Bold, tight, with a touch of negative tracking */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-64);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin: 0 0 var(--s-6);
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-48);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin: 0 0 var(--s-5);
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-36);
  line-height: var(--lh-snug);
  margin: 0 0 var(--s-4);
}
h4, .h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-28);
  line-height: var(--lh-snug);
  margin: 0 0 var(--s-3);
}
h5, .h5 {
  font-weight: var(--fw-bold);
  font-size: var(--fs-22);
  line-height: var(--lh-snug);
  margin: 0 0 var(--s-3);
}

p, .p { margin: 0 0 var(--s-4); font-size: var(--fs-16); line-height: var(--lh-relaxed); }
.lead { font-size: var(--fs-22); line-height: var(--lh-snug); }
.small, small { font-size: var(--fs-14); }
.caption { font-size: var(--fs-12); color: var(--fg-muted); }

/* Eyebrow / corporate tagline — ALL CAPS, tracked wide.
   Matches the PDF's "PROFESSIONAL AUDIO-VIDEO & ERGONOMIC WORKSPACE EQUIPMENT PROVIDER" pattern */
.eyebrow, .tagline {
  font-size: var(--fs-12);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--fg);
}

/* Italic body — supported style, used sparingly per brand */
.italic { font-style: italic; }

code, .mono { font-family: var(--font-mono); font-size: 0.95em; }

a {
  color: var(--brand-dark-gray);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--d-fast) var(--ease-out);
}
a:hover { color: var(--brand-orange); }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-8) 0; }

/* Quick utility classes mapped to brand */
.bg-orange   { background: var(--brand-orange); color: var(--fg-inverse); }
.bg-dark     { background: var(--brand-dark-gray); color: var(--fg-inverse); }
.bg-white    { background: var(--brand-white); color: var(--fg); }
.fg-orange   { color: var(--brand-orange); }
.fg-dark     { color: var(--brand-dark-gray); }
.fg-white    { color: var(--brand-white); }
