/* Infralo — base.css — brand prefix: iflo */

/* =============================================
   CUSTOM PROPERTIES
   ============================================= */
:root {
  /* Palette */
  --iflo-dark-bg: #1A1F2E;
  --iflo-dark-alt-bg: #232936;
  --iflo-amber: #E8740C;
  --iflo-amber-hover: #D0640A;
  --iflo-amber-muted: #F4A35A;
  --iflo-off-white-bg: #F7F4EF;
  --iflo-white-bg: #FFFFFF;
  --iflo-light-alt-bg: #F0EDE7;
  --iflo-charcoal: #2D3340;
  --iflo-steel-mid: #4A5368;
  --iflo-steel-light: #8491A8;

  /* Foreground tokens */
  --iflo-fg-dark-primary: #F0EDE7;
  --iflo-fg-dark-secondary: #A8B3C8;
  --iflo-fg-dark-muted: #6B7A94;
  --iflo-fg-light-primary: #1A1F2E;
  --iflo-fg-light-secondary: #3D4558;
  --iflo-fg-light-muted: #6B7A94;
  --iflo-fg-on-amber: #1A1F2E;

  /* Dividers */
  --iflo-divider-dark: #2D3747;
  --iflo-divider-light: #E0DCD5;

  /* Success */
  --iflo-success: #2D8C5A;

  /* Typography */
  --iflo-font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --iflo-font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --iflo-font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Type scale */
  --iflo-hero-headline: clamp(2.5rem, 5vw, 4rem);
  --iflo-section-headline: clamp(1.8rem, 3vw, 2.6rem);
  --iflo-card-headline: 1.25rem;
  --iflo-body-large: 1.125rem;
  --iflo-body: 1rem;
  --iflo-small: 0.875rem;
  --iflo-label: 0.75rem;

  /* Spacing */
  --iflo-space-xs: 0.5rem;
  --iflo-space-sm: 1rem;
  --iflo-space-md: 1.5rem;
  --iflo-space-lg: 2.5rem;
  --iflo-space-xl: 4rem;
  --iflo-space-2xl: 6rem;

  /* Container */
  --iflo-container-max: 1200px;
  --iflo-container-pad: clamp(1rem, 4vw, 2.5rem);

  /* Radius */
  --iflo-radius-sm: 4px;
  --iflo-radius-md: 8px;
  --iflo-radius-lg: 12px;
  --iflo-radius-xl: 16px;

  /* Transitions */
  --iflo-transition: 200ms ease;
}

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

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

body {
  font-family: var(--iflo-font-body);
  font-size: var(--iflo-body);
  line-height: 1.6;
  color: var(--iflo-fg-light-primary);
  background: var(--iflo-white-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--iflo-font-heading);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.iflo-container {
  width: 100%;
  max-width: var(--iflo-container-max);
  margin-inline: auto;
  padding-inline: var(--iflo-container-pad);
}

.iflo-section {
  padding-block: var(--iflo-space-2xl);
}

.iflo-section--tight {
  padding-block: var(--iflo-space-xl);
}

.iflo-section--dark {
  background: var(--iflo-dark-bg);
  color: var(--iflo-fg-dark-primary);
}

.iflo-section--dark-alt {
  background: var(--iflo-dark-alt-bg);
  color: var(--iflo-fg-dark-primary);
}

.iflo-section--light {
  background: var(--iflo-off-white-bg);
  color: var(--iflo-fg-light-primary);
}

.iflo-section--white {
  background: var(--iflo-white-bg);
  color: var(--iflo-fg-light-primary);
}

/* =============================================
   SECTION HEADINGS
   ============================================= */
.iflo-section-label {
  display: inline-block;
  font-family: var(--iflo-font-body);
  font-size: var(--iflo-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--iflo-amber);
  margin-bottom: var(--iflo-space-sm);
}

.iflo-section-headline {
  font-size: var(--iflo-section-headline);
  font-weight: 800;
  margin-bottom: var(--iflo-space-sm);
}

.iflo-section-subhead {
  font-size: var(--iflo-body-large);
  line-height: 1.65;
  margin-bottom: var(--iflo-space-lg);
  max-width: 640px;
}

.iflo-section--dark .iflo-section-headline,
.iflo-section--dark-alt .iflo-section-headline {
  color: var(--iflo-fg-dark-primary);
}

.iflo-section--dark .iflo-section-subhead,
.iflo-section--dark-alt .iflo-section-subhead {
  color: var(--iflo-fg-dark-secondary);
}

.iflo-section--light .iflo-section-headline,
.iflo-section--white .iflo-section-headline {
  color: var(--iflo-fg-light-primary);
}

.iflo-section--light .iflo-section-subhead,
.iflo-section--white .iflo-section-subhead {
  color: var(--iflo-fg-light-secondary);
}

/* =============================================
   BUTTONS
   ============================================= */
.iflo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--iflo-font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.75em 1.5em;
  border-radius: var(--iflo-radius-md);
  border: 2px solid transparent;
  transition: background var(--iflo-transition), color var(--iflo-transition), border-color var(--iflo-transition), opacity var(--iflo-transition);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.iflo-btn--primary-amber {
  background: var(--iflo-amber);
  color: var(--iflo-fg-on-amber);
  border-color: var(--iflo-amber);
}

.iflo-btn--primary-amber:hover {
  background: var(--iflo-amber-hover);
  border-color: var(--iflo-amber-hover);
  color: var(--iflo-fg-on-amber);
}

.iflo-btn--outline-dark {
  background: transparent;
  color: var(--iflo-fg-dark-primary);
  border-color: var(--iflo-fg-dark-primary);
}

.iflo-btn--outline-dark:hover {
  background: rgba(240, 237, 231, 0.1);
  color: var(--iflo-fg-dark-primary);
}

.iflo-btn--ghost-on-dark {
  background: transparent;
  color: var(--iflo-fg-dark-secondary);
  border-color: transparent;
  padding-inline: 0;
}

.iflo-btn--ghost-on-dark:hover {
  color: var(--iflo-fg-dark-primary);
}

.iflo-btn--ghost-on-light {
  background: transparent;
  color: var(--iflo-fg-light-secondary);
  border-color: transparent;
  padding-inline: 0;
}

.iflo-btn--ghost-on-light:hover {
  color: var(--iflo-fg-light-primary);
}

.iflo-btn--outline-light {
  background: transparent;
  color: var(--iflo-fg-light-primary);
  border-color: var(--iflo-fg-light-primary);
}

.iflo-btn--outline-light:hover {
  background: rgba(26, 31, 46, 0.06);
}

/* =============================================
   SKIP LINK
   ============================================= */
.iflo-skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--iflo-amber);
  color: var(--iflo-fg-on-amber);
  padding: 0.5em 1em;
  border-radius: var(--iflo-radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}

.iflo-skip-link:focus {
  top: 1rem;
}

/* =============================================
   FADE-IN ANIMATION
   ============================================= */
.iflo-fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.iflo-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   VISUALLY HIDDEN (accessibility)
   ============================================= */
.iflo-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
