/* Profab Machine — site-wide tokens and minimal resets.
   Source of truth for these values: DESIGN.md. Do not duplicate token values
   elsewhere — reference these custom properties instead. */

:root {
  /* Color tokens */
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-blue-primary: #0318A8;
  --color-blue-primary-hover: #020F80;
  --color-blue-light: #6680FF;
  --color-blue-tint: #F6F6F6;
  --color-border: #938C8C7A;
  --color-accent-yellow: #FFDF00;

  /* Deep navy derived from the brand blue, for gradients/dark sections */
  --color-navy-deep: #050B4D;
  --color-navy-black: #02040F;

  /* Type */
  --font-heading: 'Roboto Condensed', sans-serif;
  --font-body: 'Roboto Slab', serif;

  /* Layout */
  --container-max: 1400px;
  --container-padding: 40px;
  --container-padding-mobile: 20px;

  /* Buttons */
  --radius-button: 4px;
  --radius-card: 6px;
  --radius-card-lg: 14px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 24px rgba(3,24,168,0.10);
  --shadow-lg: 0 20px 45px rgba(2,4,15,0.35);
  --shadow-glow: 0 0 40px rgba(102,128,255,0.25);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

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

a {
  color: var(--color-blue-primary);
}

button {
  font-family: var(--font-heading);
}

/* Container */
.profab-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

@media (max-width: 480px) {
  .profab-container {
    padding: 0 var(--container-padding-mobile);
  }
}

/* Buttons — shared across the site, scoped under .profab-page */
.profab-page .btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-button);
  padding: 14px 28px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  border: 2px solid transparent;
}

.profab-page .btn-primary {
  background: var(--color-blue-primary);
  color: var(--color-white);
}

.profab-page .btn-primary:hover,
.profab-page .btn-primary:focus-visible {
  background: var(--color-blue-primary-hover);
  transform: translateY(-2px);
}

.profab-page .btn-outline {
  background: transparent;
  color: var(--color-black);
  border-color: var(--color-black);
}

.profab-page .btn-outline:hover,
.profab-page .btn-outline:focus-visible {
  background: var(--color-black);
  color: var(--color-white);
}

.profab-page .btn:focus-visible {
  outline: 2px solid var(--color-blue-light);
  outline-offset: 2px;
}

/* Cards — flat, bordered, no shadow */
.profab-page .card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .profab-page * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
