/**
 * TATEXPO — Corporate Brand Design System
 * Based on Official Tatexpo Brandbook Guidelines (2024-2026)
 *
 * Official Palette:
 * - Brand Accent Blue: #0860A2 / #0966A2
 * - Brand Deep Navy:   #093C6D
 * - Highlight Sky:     #89B6E2
 * - Base Night Deep:   #06152B
 * - Contrast White:    #FFFFFF
 * - Text Secondary:    #A0BBD8
 * - Text Muted:        #6B94BD
 *
 * Typography:
 * - Headings: \x27Unbounded\x27, \x27Onest\x27, sans-serif
 * - Body:     \x27Onest\x27, \x27Plus Jakarta Sans\x27, sans-serif
 */

/* ==========================================================================
   1. CSS DESIGN TOKENS & ROOT VARIABLES
   ========================================================================== */
:root,
[data-bs-theme="dark"] {
  /* Bootstrap 5 Overrides */
  --bs-body-bg: #06152B;
  --bs-body-bg-rgb: 6, 21, 43;
  --bs-body-color: #FFFFFF;
  --bs-body-color-rgb: 255, 255, 255;
  --bs-primary: #0966A2;
  --bs-primary-rgb: 9, 102, 162;
  --bs-secondary-color: #89B6E2;
  --bs-emphasis-color: #FFFFFF;

  /* Theme Colors */
  --bg-primary: #06152B;
  --bg-secondary: #092244;
  --bg-tertiary: #093C6D;
  --bg-elevated: #0D2C54;
  --bg-card: rgba(9, 34, 68, 0.72);
  --bg-card-hover: rgba(13, 44, 84, 0.88);

  --text-primary: #FFFFFF;
  --text-secondary: #89B6E2;
  --text-body: #CBD5E1;
  --text-muted: #6B94BD;
  --text-dim: #4B6E94;

  --border-color: rgba(137, 182, 226, 0.18);
  --border-line: var(--border-color);
  --border-line-subtle: rgba(137, 182, 226, 0.12);
  --border-active: #0966A2;

  --card-bg: var(--bg-card);
  --card-border: rgba(137, 182, 226, 0.2);

  --accent-green: #89B6E2;
  --accent-green-hover: #FFFFFF;
  --accent-green-glow: rgba(9, 102, 162, 0.45);
  --accent-green-subtle: rgba(9, 102, 162, 0.15);

  --brand-blue: #0966A2;
  --brand-navy: #093C6D;
  --brand-light: #89B6E2;

  --header-bg: rgba(6, 21, 43, 0.92);
  --header-bg-scrolled: rgba(6, 21, 43, 0.98);
  --ticker-bg: #092244;
  --footer-bg: #040E1E;
  --modal-bg: #092244;
  --modal-overlay-bg: rgba(4, 14, 30, 0.85);
  --input-bg: rgba(9, 60, 109, 0.35);
  --input-bg-focus: rgba(9, 60, 109, 0.65);

  --font-heading: \x27Unbounded\x27, \x27Onest\x27, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: \x27Onest\x27, \x27Plus Jakarta Sans\x27, -apple-system, BlinkMacSystemFont, \x27Segoe UI\x27, Roboto, sans-serif;

  --container-max: 1240px;
  --container-padding: 24px;
  --header-height: 80px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1441px) {
  :root {
    --container-max: 1360px;
    --container-padding: 32px;
  }
}

/* Light Theme Support */
[data-bs-theme="light"],
.light-theme {
  --bs-body-bg: #F0F4F9;
  --bs-body-color: #093C6D;
  --bg-primary: #F0F4F9;
  --bg-secondary: #E2ECF7;
  --bg-tertiary: #D4E3F3;
  --bg-elevated: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFD;
  --text-primary: #093C6D;
  --text-secondary: #0966A2;
  --text-body: #334E68;
  --text-muted: #537599;
  --text-dim: #7A9ABF;
  --border-color: rgba(9, 60, 109, 0.15);
  --card-bg: #FFFFFF;
  --card-border: rgba(9, 60, 109, 0.12);
  --header-bg: rgba(240, 244, 249, 0.92);
  --header-bg-scrolled: rgba(240, 244, 249, 0.98);
  --ticker-bg: #093C6D;
  --footer-bg: #06152B;
  --modal-bg: #FFFFFF;
  --modal-overlay-bg: rgba(9, 60, 109, 0.7);
  --input-bg: #F8FAFD;
  --input-bg-focus: #FFFFFF;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

.light-theme {
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  background-color: #06152B !important;
  color: var(--text-primary) !important;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 12% 15%, rgba(9, 102, 162, 0.28) 0%, transparent 45%),
    radial-gradient(circle at 88% 35%, rgba(9, 60, 109, 0.42) 0%, transparent 50%),
    radial-gradient(circle at 18% 65%, rgba(9, 102, 162, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 82% 88%, rgba(9, 60, 109, 0.38) 0%, transparent 50%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* Page Frame Lines */
.page-frame-lines {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--container-max), 100% - 48px);
  border-left: 1px solid rgba(137, 182, 226, 0.08);
  border-right: 1px solid rgba(137, 182, 226, 0.08);
  pointer-events: none;
  z-index: 1;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  position: relative;
  z-index: 2;
}

/* Section Shared Structure */
.section {
  position: relative;
  padding: 100px 0;
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.section-header {
  margin-bottom: 48px;
}

.section-header--flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-badge,
.badge-tag {
  display: none !important;
  align-items: center;
  gap: 8px;
  background: rgba(9, 102, 162, 0.2);
  border: 1px solid rgba(137, 182, 226, 0.35);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-badge::before,
.section-badge-dot,
.badge-tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--brand-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand-light);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.8vw, 44px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.6;
}

/* ==========================================================================
   3. BUTTONS & BRAND CTAs
   ========================================================================== */
.arrow-button,
.btn-primary,
.button--primary,
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(135deg, #0966A2 0%, #093C6D 100%) !important;
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid rgba(137, 182, 226, 0.3) !important;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(9, 102, 162, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.arrow-button:hover,
.btn-primary:hover,
.button--primary:hover,
.button-primary:hover {
  background: linear-gradient(135deg, #0A78BE 0%, #0966A2 100%) !important;
  border-color: #89B6E2 !important;
  box-shadow: 0 10px 28px rgba(9, 102, 162, 0.5);
  transform: translateY(-2px);
  color: #FFFFFF !important;
}

.arrow-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.arrow-button:hover .arrow-button__icon {
  transform: translateX(4px);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(9, 60, 109, 0.4);
  color: #FFFFFF;
  border: 1px solid rgba(137, 182, 226, 0.3);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 18px;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.ghost-button:hover {
  background: #0966A2;
  border-color: #89B6E2;
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* ==========================================================================
   4. SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal-on-scroll {
  opacity: 1;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .js-loaded .reveal-on-scroll:not(.is-revealed) {
    opacity: 0;
    transform: translateY(16px);
  }
  .js-loaded .reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* Responsive Base */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  .section-header {
    margin-bottom: 32px;
  }
  .section-title {
    font-size: clamp(22px, 5.5vw, 30px);
  }
  .section-subtitle {
    font-size: 14px;
  }
}
