/* ============================================================
   KE Engenharia — Design Tokens
   colors_and_type.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700;800;900&family=Barlow:wght@300;400;500;600;700&display=swap');

/* ── Base Color Palette ─────────────────────────────────── */
:root {
  --ke-navy:        #0F1923;
  --ke-navy-800:    #1A2B3C;
  --ke-navy-700:    #253447;
  --ke-amber:       #F4A11D;
  --ke-amber-dark:  #D4860D;
  --ke-amber-light: #FBBE5A;
  --ke-white:       #FFFFFF;
  --ke-light:       #F7F6F2;
  --ke-gray-100:    #F1F0EC;
  --ke-gray-200:    #E5E4E0;
  --ke-gray-400:    #9CA3AF;
  --ke-gray-600:    #6B7280;
  --ke-text:        #1F2937;
  --ke-text-light:  #4B5563;

  /* ── Semantic Colors ──────────────────────────────────── */
  --color-bg:          var(--ke-white);
  --color-bg-alt:      var(--ke-light);
  --color-bg-dark:     var(--ke-navy);
  --color-accent:      var(--ke-amber);
  --color-accent-hover:var(--ke-amber-dark);
  --color-fg:          var(--ke-text);
  --color-fg-muted:    var(--ke-text-light);
  --color-fg-subtle:   var(--ke-gray-600);
  --color-border:      var(--ke-gray-200);
  --color-nav-bg:      var(--ke-navy);
  --color-nav-fg:      var(--ke-white);
  --color-footer-bg:   var(--ke-navy);
  --color-footer-fg:   rgba(255,255,255,0.75);

  /* ── Typography ───────────────────────────────────────── */
  --font-display:  'Barlow Condensed', sans-serif;
  --font-body:     'Barlow', sans-serif;

  /* ── Type Scale ───────────────────────────────────────── */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */
  --text-5xl:  3rem;      /* 48px */
  --text-6xl:  3.75rem;   /* 60px */
  --text-7xl:  4.5rem;    /* 72px */

  /* ── Spacing ──────────────────────────────────────────── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ── Radius ───────────────────────────────────────────── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* ── Shadows ──────────────────────────────────────────── */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.18);

  /* ── Transitions ──────────────────────────────────────── */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* ── Layout ───────────────────────────────────────────── */
  --container-max: 1280px;
  --section-py: 5rem;
}

/* ── Semantic Type Styles ─────────────────────────────────── */
h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl));
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
  font-weight: 700;
  line-height: 1.2;
}

h4, .h4 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.3;
}

p, .body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-fg-muted);
}

.lead {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-fg-muted);
}

.caption {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-fg-subtle);
}

.overline {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ke-amber);
}
