/* DIO-NOTE: bbfassaden – Design Tokens */
/* DIO-NOTE: Central place for theming. */
/* DIO-NOTE: Colors, fonts, spacing and radii are defined here as CSS custom properties and used across the theme (theme.css) ONLY via these variables. */
/* DIO-NOTE: To change the appearance, change values here only. */
/* DIO-NOTE: Note for the later TYPO3/Mask phase: */
/* DIO-NOTE: These :root variables can be populated 1:1 from the sitepackage/constants (e.g. via TypoScript constants -> inline <style>), so editors or integrators maintain brand colors in one place. */

:root {
  /* DIO-NOTE: Brand colors (from the BB-Fassaden logo) */
  /* DIO-NOTE: Two equal brand colors: red + green. */
  /* DIO-NOTE: Role distribution by color theory (60-30-10): */
  /* DIO-NOTE: PRIMARY = red -> action: buttons, links, CTAs, accents/dividers. */
  /* DIO-NOTE: SECONDARY = green -> structure: dark bands (topbar, hero, stats, footer), icon surfaces, headings. */
  /* DIO-NOTE: -light = lighter accent on dark ground; -soft = very light surface tint. */
  /* DIO-NOTE: Aliases --bb-red / --bb-green hold the pure logo colors (role-independent). */

  /* DIO-NOTE: Logo original tones */
  --bb-red:            #8f1325;   /* DIO-NOTE: Wine/bordeaux red from the logo */
  --bb-green:          #2d4427;   /* DIO-NOTE: Fir green from the logo */

  /* DIO-NOTE: Primary = red */
  --bb-primary:        #8f1325;
  --bb-primary-rgb:    143, 19, 37;
  --bb-primary-dark:   #74101e;   /* DIO-NOTE: Hover/active */
  --bb-primary-light:  #e8717c;   /* DIO-NOTE: Lighter red accent on dark ground */
  --bb-primary-soft:   #f8e7ea;   /* DIO-NOTE: Light surface tint (backgrounds) */

  /* DIO-NOTE: Secondary = green */
  --bb-secondary:      #2d4427;
  --bb-secondary-rgb:  45, 68, 39;
  --bb-secondary-dark: #22331d;   /* DIO-NOTE: Deeper variant (footer, hero top) */
  --bb-secondary-light:#7c9472;   /* DIO-NOTE: Lighter green accent on dark ground */
  --bb-secondary-soft: #e9eee7;   /* DIO-NOTE: Light surface tint */

  /* DIO-NOTE: Neutral tones (slightly warm, harmonizes with red/green) */
  --bb-dark:           #1a2417;   /* DIO-NOTE: Almost black green */
  --bb-body:           #58524b;   /* DIO-NOTE: Body text (warm gray) */
  --bb-heading:        #22331d;   /* DIO-NOTE: Headings = deep brand green */
  --bb-muted:          #706b63;   /* DIO-NOTE: WCAG AA: >=4.5:1 on white (secondary text) */
  --bb-border:         #e6e2dd;
  --bb-input-border:   #969084;   /* DIO-NOTE: Form field border, WCAG 1.4.11: >=3:1 on white */
  --bb-light:          #f6f4f1;   /* DIO-NOTE: Light section backgrounds (warm) */
  --bb-light-2:        #eeeae5;
  --bb-white:          #ffffff;

  /* DIO-NOTE: Status colors */
  --bb-success:        #2fae67;
  --bb-info:           #2d8fd5;
  --bb-warning:        #e6b800;
  --bb-danger:         #d8493f;

  /* DIO-NOTE: Typography */
  --bb-font-body:    "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bb-font-heading: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --bb-fs-base:      16px;
  --bb-lh-base:      1.75;
  --bb-fw-normal:    400;
  --bb-fw-medium:    500;
  --bb-fw-semibold:  600;
  --bb-fw-bold:      700;

  /* DIO-NOTE: Spacing / layout */
  --bb-section-py:        120px;   /* DIO-NOTE: Default vertical spacing per section (airier) */
  --bb-section-py-sm:     80px;    /* DIO-NOTE: Tighter on small viewports */
  --bb-container-max:     1200px;

  /* DIO-NOTE: Straight/architectural: precise, near right-angled geometry */
  --bb-radius:        2px;
  --bb-radius-lg:     4px;
  --bb-radius-pill:   50rem;

  /* DIO-NOTE: Clear, light shadows instead of soft clouds (more precise, modern) */
  --bb-shadow-sm:     0 1px 2px rgba(28, 43, 54, .06);
  --bb-shadow:        0 .75rem 2rem rgba(28, 43, 54, .07);
  --bb-shadow-lg:     0 1.25rem 3.5rem rgba(28, 43, 54, .10);

  --bb-transition:    .3s ease;

  /* DIO-NOTE: Header */
  --bb-topbar-bg:     var(--bb-secondary);
  --bb-topbar-color:  rgba(255, 255, 255, .75);
  --bb-header-h:      78px;

  /* DIO-NOTE: Bootstrap bridge */
  /* DIO-NOTE: Bootstrap 5 uses its own CSS variables. We map our tokens onto them so Bootstrap components (buttons, links, focus rings, ...) automatically appear in the brand color. */
  --bs-primary:       var(--bb-primary);
  --bs-primary-rgb:   var(--bb-primary-rgb);
  --bs-link-color:    var(--bb-primary);
  --bs-link-color-rgb: var(--bb-primary-rgb);
  --bs-link-hover-color: var(--bb-primary-dark);
  --bs-body-color:    var(--bb-body);
  --bs-body-font-family: var(--bb-font-body);
  --bs-body-font-size: var(--bb-fs-base);
  --bs-border-radius: var(--bb-radius);
}
