/* Core Design System & Global Styles - Exact Match 1:1 with Figma Design */
/* Font (@font-face + --font-family-primary) now lives in fonts.css — see that file to change the site typeface. */

/* Anti-flash page reveal. Header/footer/page-content are all injected async
   (see header.js/footer.js and each page's component loader); without this,
   navigating between pages shows a visible flash as sections pop in one at
   a time out of order. The inline bootstrap <script> at the top of each
   page's <head> adds "js-loading" before first paint (skipped entirely if
   JS is disabled, so the page just renders normally instead of staying
   hidden forever); every async loader then registers itself via
   window.__pendingLoaders and the page only fades in once all of them are
   done — see the shared coordinator in header.js. */
html.js-loading {
  opacity: 0;
}
html.js-loaded {
  opacity: 1;
  transition: opacity 0.25s ease;
}

:root {
  /* Colors */
  --primary-color: #EE3000;
  --primary-hover: #F60206;
  --primary-gradient: linear-gradient(261.64deg, #EE3000 14.51%, #F60206 95.96%);
  --dark-bg: #0B0D12;
  --card-bg: #FFFFFF;
  --text-dark: #101216;
  --text-main: #333333;
  --text-muted: #6A7282;
  --text-light: #F9FAFB;
  --border-light: #E4E7EC;

  /* Font Sizes per section from Figma */
  --font-size-hero-title: 64px;
  --font-size-hero-desc: 20px;
  --font-size-section-title: 48px;
  --font-size-card-h2: 32px;
  --font-size-card-h3: 28px;
  --font-size-director-quote: 24px;
  --font-size-card-h4: 20px;
  --font-size-subtitle: 20px;
  --font-size-step-title: 19px;
  --font-size-body: 16px;
  --font-size-small: 14px;

  /* Radius & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0px 4px 20px rgba(0, 0, 0, 0.06);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family-primary);
  color: var(--text-main);
  background-color: #F1F4F9;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul, ol {
  list-style: none;
}

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

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

/* Container width matched 1:1 with Figma layout width (1476px) */
.container {
  width: 100%;
  max-width: 1476px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Gradient Text Helper matching Figma */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Custom Buttons matching Figma */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary-gradient);
  color: #FFFFFF;
  font-family: var(--font-family-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  box-shadow: 0px 4px 15px rgba(238, 48, 0, 0.3);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0px 8px 25px rgba(238, 48, 0, 0.45);
}

/* Section Spacing */
.section-padding {
  padding: 100px 0;
}

@media (max-width: 992px) {
  .section-padding {
    padding: 60px 0;
  }
}

/* --------------------------------------------------------------------------
   Shared Floating Action Buttons (call / support)
   Loaded once via components/shared/fabs.html + assets/js/fabs.js so every
   page gets it without redeclaring the markup. position: fixed keeps it
   pinned to the viewport corner while the page scrolls.
   -------------------------------------------------------------------------- */
.shared-fabs {
  position: fixed;
  right: 47px;
  bottom: 47px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shared-fab {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.shared-fab:hover {
  transform: translateY(-3px);
}

.shared-fab img {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 991px) {
  .shared-fabs {
    right: 24px;
    bottom: 24px;
  }
}

@media (max-width: 576px) {
  .shared-fab {
    width: 52px;
    height: 52px;
  }

  .shared-fabs {
    right: 16px;
    bottom: 16px;
  }
}
