/* =============================================================
   SAFETY FOOD CONSULTING - base: reset, design tokens, typography
   ============================================================= */

:root {
  /* palette */
  --color-blue: #2951d5;
  --color-teal: #2ccab9;
  --color-dark: #26262c;
  --color-text: #76787f;
  --color-light: #f3f4f6;
  --color-white: #ffffff;
  --color-border: #e0e0e0;
  --color-black: #050505;

  /* typography */
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --text-base: 16px;
  --leading-body: 1.8571;

  /* layout */
  --container: 1200px;
  --container-pad: 40px;
  --header-height: 133px;

  /* motion */
  --duration: 300ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  margin: 0;
  background-color: var(--color-light);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-body);
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
  border: 0;
}

img {
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--color-dark);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover,
a:focus {
  color: var(--color-teal);
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

p {
  margin: 0 0 1em;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 20px;
  color: var(--color-dark);
  font-family: var(--font-heading);
}

h1 { font-size: 80px; font-weight: 800; line-height: 1.2; }
h2 { font-size: 56px; font-weight: 800; line-height: 1.2; }
h3 { font-size: 40px; font-weight: 800; line-height: 1.2; }
h4 { font-size: 32px; font-weight: 700; line-height: 1.5; }
h5 { font-size: 24px; font-weight: 700; line-height: 1.6; }
h6 { font-size: 18px; font-weight: 700; line-height: 1.6; }

::selection {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--color-white);
  color: var(--color-dark);
}

.skip-link:focus {
  left: 0;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- layout primitives ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 120px var(--container-pad);
}

.section--flush {
  padding: 0;
}

/* ---------- Astra / Elementor breakpoints ----------
   921px  : tablet typography step
   1024px : Elementor tablet spacing step
   767px  : Elementor mobile spacing step
   544px  : Astra mobile typography step
   -------------------------------------------------- */

@media (max-width: 1024px) {
  :root {
    --container-pad: 40px;
  }
  .section {
    padding: 80px var(--container-pad);
  }
}

@media (max-width: 921px) {
  h1 { font-size: 64px; }
  h2 { font-size: 40px; }
  h3 { font-size: 32px; }
  h4 { font-size: 24px; }
  h5 { font-size: 20px; }
  h6 { font-size: 17px; }
}

@media (max-width: 767px) {
  :root {
    --container-pad: 24px;
  }
  .section {
    padding: 48px var(--container-pad);
  }
}

@media (max-width: 544px) {
  body {
    font-size: 15px;
  }
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  h3 { font-size: 24px; }
  h4 { font-size: 20px; }
  h5 { font-size: 18px; }
  h6 { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
