/* ==========================================================================
   CONDOR PERFORMANCE - GLOBAL DESIGN SYSTEM TOKENS & BASE STYLES
   Extracted from Elementor Kit-6 & Condor Performance Theme
   ========================================================================== */

/* Global Components Import */
@import url('components.css');

/* 1. Local Fonts */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/BebasNeue-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Roboto Flex';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/RobotoFlex-Variable.woff2') format('woff2'),
       url('../assets/fonts/RobotoFlex-Variable.ttf') format('truetype');
}

/* 2. Global CSS Custom Properties (Elementor Kit-6 & Custom Clean Variables) */
:root {
  /* Brand Colors */
  --e-global-color-primary: #121212;
  --e-global-color-secondary: #121212;
  --e-global-color-text: #333333;
  --e-global-color-accent: #CB0404;
  --e-global-color-60e1e00: #FFFFFF;
  --e-global-color-c4b44d2: #F2F2F2;
  --e-global-color-050d59a: #4B0202;

  /* Aliased Semantic Colors */
  --color-primary: var(--e-global-color-primary);
  --color-dark: #121212;
  --color-text: var(--e-global-color-text);
  --color-accent-red: var(--e-global-color-accent);
  --color-dark-red: var(--e-global-color-050d59a);
  --color-white: var(--e-global-color-60e1e00);
  --color-bg-light: var(--e-global-color-c4b44d2);
  --color-border: #E5E5E5;

  /* Global Typography Settings (Desktop min-width: 1025px) */
  --e-global-typography-primary-font-family: 'Bebas Neue', sans-serif;
  --e-global-typography-primary-font-size: 28px;
  --e-global-typography-primary-font-weight: 700;
  --e-global-typography-primary-text-transform: uppercase;
  --e-global-typography-primary-line-height: 1.1em;

  --e-global-typography-secondary-font-family: 'Bebas Neue', sans-serif;
  --e-global-typography-secondary-font-size: 80px;
  --e-global-typography-secondary-font-weight: 700;
  --e-global-typography-secondary-line-height: 1.1em;

  --e-global-typography-text-font-family: 'Bebas Neue', sans-serif;
  --e-global-typography-text-font-size: 55px;
  --e-global-typography-text-font-weight: 700;
  --e-global-typography-text-line-height: 1.1em;

  --e-global-typography-accent-font-family: 'Bebas Neue', sans-serif;
  --e-global-typography-accent-font-size: 32px;
  --e-global-typography-accent-font-weight: 700;
  --e-global-typography-accent-line-height: 1.1em;

  --e-global-typography-593fb8d-font-family: 'Bebas Neue', sans-serif;
  --e-global-typography-593fb8d-font-size: 28px;
  --e-global-typography-593fb8d-font-weight: 700;
  --e-global-typography-593fb8d-line-height: 1.1em;

  --e-global-typography-5a6abd7-font-family: 'Roboto Flex', sans-serif;
  --e-global-typography-5a6abd7-font-size: 20px;
  --e-global-typography-5a6abd7-font-weight: 500;
  --e-global-typography-5a6abd7-line-height: 1.9em;

  --e-global-typography-c156e18-font-family: 'Roboto Flex', sans-serif;
  --e-global-typography-c156e18-font-size: 17px;
  --e-global-typography-c156e18-line-height: 1.9em;

  --e-global-typography-c31234b-font-family: 'Bebas Neue', sans-serif;
  --e-global-typography-c31234b-font-size: 27px;
  --e-global-typography-c31234b-font-weight: 700;
  --e-global-typography-c31234b-line-height: 1.3em;

  --e-global-typography-ba7b1b7-font-family: 'Bebas Neue', sans-serif;
  --e-global-typography-ba7b1b7-font-size: 25px;
  --e-global-typography-ba7b1b7-font-weight: 700;
  --e-global-typography-ba7b1b7-line-height: 1.3em;

  /* Layout Widths */
  --container-max-width: 1190px;
  --container-content-width: 800px;
  --container-wide-width: 1190px;
  --section-padding-y: 80px;
  --section-padding-x: 20px;
}

/* Tablet Kit-6 Overrides (max-width: 1024px) */
@media (max-width: 1024px) {
  :root, .elementor-kit-6 {
    --e-global-typography-primary-font-size: 26px;
    --e-global-typography-secondary-font-size: 61px;
    --e-global-typography-text-font-size: 42px;
    --e-global-typography-accent-font-size: 28px;
    --e-global-typography-593fb8d-font-size: 26px;
    --e-global-typography-5a6abd7-font-size: 18px;
    --e-global-typography-c156e18-font-size: 16px;
    --e-global-typography-c31234b-font-size: 25px;
    --e-global-typography-ba7b1b7-font-size: 23px;
  }
}

/* Mobile Kit-6 Overrides (max-width: 767px) */
@media (max-width: 767px) {
  :root, .elementor-kit-6 {
    --e-global-typography-primary-font-size: 20px;
    --e-global-typography-secondary-font-size: 42px;
    --e-global-typography-text-font-size: 36px;
    --e-global-typography-text-line-height: 1.1em;
    --e-global-typography-accent-font-size: 28px;
    --e-global-typography-593fb8d-font-size: 26px;
    --e-global-typography-5a6abd7-font-size: 17px;
    --e-global-typography-c156e18-font-size: 16px;
    --e-global-typography-c31234b-font-size: 24px;
    --e-global-typography-ba7b1b7-font-size: 23px;
  }
}

/* 3. Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-white);
  color: var(--e-global-color-text);
  font-family: var(--e-global-typography-c156e18-font-family), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--e-global-typography-c156e18-font-size);
  line-height: var(--e-global-typography-c156e18-line-height);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* 4. Headings & Typography Styles */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  line-height: 1.1em;
  letter-spacing: 0.5px;
  text-wrap: balance; /* Prevents orphan text and balances line wraps across all headings */
}

/* Custom utility class to prevent orphan text */
.no-orphan,
.heading-balanced,
.title-balanced {
  text-wrap: balance;
}

h1 {
  font-size: clamp(48px, 6vw, var(--e-global-typography-secondary-font-size)); /* 80px */
}

h2 {
  font-size: clamp(36px, 4.5vw, var(--e-global-typography-text-font-size)); /* 55px */
}

h3 {
  font-size: clamp(24px, 3vw, var(--e-global-typography-accent-font-size)); /* 32px */
}

h4 {
  font-size: var(--e-global-typography-primary-font-size); /* 28px */
}

h5 {
  font-size: var(--e-global-typography-c31234b-font-size); /* 27px */
}

h6 {
  font-size: var(--e-global-typography-ba7b1b7-font-size); /* 25px */
}

p {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  text-wrap: pretty; /* Prevents single orphan words on the last line */
}

p.lead {
  font-size: var(--e-global-typography-5a6abd7-font-size); /* 20px */
  font-weight: var(--e-global-typography-5a6abd7-font-weight); /* 500 */
  line-height: var(--e-global-typography-5a6abd7-line-height); /* 1.9em */
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
}

/* 5. Utility Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* 6. Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

.btn-primary {
  background-color: var(--color-accent-red);
  color: var(--color-white);
  border-color: var(--color-accent-red);
}

.btn-primary:hover {
  background-color: var(--color-dark-red);
  border-color: var(--color-dark-red);
  color: var(--color-white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn-white:hover {
  background-color: var(--color-accent-red);
  color: var(--color-white);
  border-color: var(--color-accent-red);
}
