/*
  Design tokens — Brunnbauer-Budapest Kft.
  Source of truth for every color, type, spacing, and breakpoint value used
  on the site. Section CSS should reference these custom properties rather
  than hard-coding values, so the whole site stays in sync from one place.

  Colors come from assets/design/Brand egyesítés 3V.pdf. Typefaces
  (Orbitron Custom + Montserrat) match sibling site jglobe.hu. Navy + red are Brunnbauer's own brand
  colors; the group's green/gold belong to sibling Navigator companies
  (Julius-Globe, Instrum Kft.) and must not be used here.
*/

:root {
  /* ---- Brand colors ---- */
  --color-navy-900: #1d2f42; /* primary dark — headings, dark surfaces */
  --color-navy-700: #2c3b59; /* secondary navy — gradients, hover states */
  --color-red-600: #d53020; /* Brunnbauer accent — CTAs, highlights */
  --color-red-700: #b3271a; /* pressed/hover state for red */
  --color-navy-tint: #7e93ac; /* muted secondary-icon tint, derived from navy — not a primary color */
  /* Photo overlay navy, measured directly from the pptx: every full-bleed
     content slide uses a #23304D rectangle at 85% opacity over its photo.
     Close to --color-navy-900 but not identical — kept as its own token
     since it's sourced from the deck specifically, for hero/photo tints. */
  --color-overlay-navy: #23304d;
  --overlay-hero-opacity: 0.85;

  /* ---- Neutrals (derived from navy, not generic grays) ---- */
  --color-white: #ffffff;
  --color-ink: #14212f; /* body text on light surfaces, darker than navy-900 */
  --color-slate-600: #4d5c6e;
  --color-slate-400: #8b97a6;
  --color-slate-200: #d7dce2;
  --color-slate-100: #eef1f4;
  --color-surface: #f6f7f9; /* off-white section background */

  /* ---- Typography ---- */
  /* Matches jglobe.hu (NAVIGATOR sibling): Orbitron for h1/h2,
     buttons and big numbers; Montserrat for body, nav and card titles.
     "Orbitron Custom" is ONE weight; 600/700/800 are browser-synthesised
     bold, exactly as on jglobe.hu. Glyphs it lacks (©, ½, „ …) fall back
     to Montserrat. */
  --font-display: "Orbitron Custom", "Montserrat", Arial, sans-serif;
  --font-body: "Montserrat", Arial, sans-serif;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;
  --fw-heavy: 800;
  --fw-black: 900;
  --fw-display: 600;        /* h1/h2 in Orbitron (jglobe.hu) */
  --fw-display-strong: 800; /* stat numbers, years in Orbitron (jglobe.hu) */

  /* Type scale = jglobe.hu, measured 2026-11-15 at 390-1920px. jglobe does
     not scale fluidly: sizes STEP at fixed widths (mostly 1200px), so the
     tokens are the phone values here and are raised by the @media blocks
     below this :root. */
  --fs-body: 0.875rem;     /* 14px  (15px from 1200) */
  --fs-small: 0.7875rem;   /* 12.6px (13.5px from 1200) */
  --fs-label: 0.7875rem;   /* 12.6px buttons (13.5px from 1200) */
  /* Eyebrows = jglobe.hu .btSuperTitle: Montserrat 400, uppercase, normal
     tracking. */
  --font-eyebrow: var(--font-body);
  --fw-eyebrow: 400;
  --fs-eyebrow: 0.875rem;  /* 14px (16.5px from 1200) */
  --fs-lead: 0.875rem;     /* 14px (18px from 1200), jglobe .btSubTitle */
  --fs-nav: 0.9375rem;     /* 15px at every width, jglobe main menu */
  --fs-h4: 1.05rem;        /* 16.8px (18px from 1200) */
  --fs-h3: clamp(1.575rem, 1.417rem + 0.648vw, 2rem);    /* 25.2 -> 32px */
  --fs-h2: 1.5rem;         /* 24px (30.8px from 768, 40px from 1200) */
  --fs-h1: 2.625rem;       /* 42px (49px from 769, 52.5px from 1200, 66px from 1440) */
  --fs-display: clamp(3rem, 2rem + 4vw, 5.5rem);

  --lh-body: 1.8;      /* jglobe.hu: 15px / 27px */
  --lh-heading: 1.3;   /* jglobe.hu h2/h4 (h2 is 1.2 below 768px, base.css) */
  --lh-h1: 1.05;       /* jglobe.hu h1: 66px / 69.3px */
  --tracking-tight: 0; /* jglobe.hu headings use normal tracking */

  /* ---- Spacing scale (base unit 4px) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* ---- Layout ---- */
  --content-max: 1320px;
  --content-padding: clamp(1.25rem, 4vw, 4rem);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 32px;
  /* Buttons + the about stats box: 3px with a 2px border, measured on
     jglobe.hu .btBtn (2026-11-15). */
  --radius-button: 3px;
  --button-border: 2px;

  /* ---- Shadows (layered, navy-tinted — never flat shadow-md) ---- */
  --shadow-sm: 0 1px 2px rgba(29, 47, 66, 0.08), 0 2px 6px rgba(29, 47, 66, 0.06);
  --shadow-md: 0 4px 10px rgba(29, 47, 66, 0.1), 0 12px 28px rgba(29, 47, 66, 0.12);
  --shadow-lg: 0 10px 24px rgba(29, 47, 66, 0.14), 0 24px 56px rgba(29, 47, 66, 0.16);
  --shadow-red: 0 8px 20px rgba(213, 48, 32, 0.24);

  /* ---- Motion ---- */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 450ms;

  /* ---- Z-layers (base -> elevated -> floating) ---- */
  --z-base: 0;
  --z-elevated: 10;
  --z-floating: 100;
  --z-overlay: 1000;
}

/* jglobe.hu breakpoints (measured 2026-11-15; jglobe changes at these exact
   widths: h2 between 767/768, h1 between 768/800, the rest 1199/1200, h1
   again between 1400/1440). */
@media (min-width: 768px) {
  :root { --fs-h2: 1.925rem; }          /* 30.8px */
}
@media (min-width: 769px) {
  :root { --fs-h1: 3.0625rem; }         /* 49px */
}
@media (min-width: 1200px) {
  :root {
    --fs-body: 0.9375rem;               /* 15px */
    --fs-small: 0.84375rem;             /* 13.5px */
    --fs-label: 0.84375rem;             /* 13.5px */
    --fs-eyebrow: 1.03125rem;           /* 16.5px */
    --fs-lead: 1.125rem;                /* 18px */
    --fs-h4: 1.125rem;                  /* 18px */
    --fs-h2: 2.5rem;                    /* 40px */
    --fs-h1: 3.28125rem;                /* 52.5px */
  }
}
@media (min-width: 1440px) {
  :root { --fs-h1: 4.125rem; }          /* 66px */
}

/*
  Breakpoint reference (documentation only — CSS custom properties cannot be
  used inside @media queries, so section stylesheets should hard-code these
  same pixel values):
    mobile   : < 480px
    tablet   : 481px – 768px
    laptop   : 769px – 1024px
    desktop  : 1025px – 1440px
    wide     : 1441px and up
*/
