/* ==========================================================================
   HDtranS – main.css
   Design tokens, reset, base typography, spacing & layout helpers
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand red scale */
  --red-950: #4A0508;
  --red-900: #881418;
  --red-800: #A41016;
  --red-700: #C70E15;
  --red-600: #ED1C24; /* HDtranS RED – primary accent / CTA */
  --red-500: #FE353D;
  --red-400: #FF656B;
  --red-300: #FF9DA1;
  --red-200: #FFC5C7;
  --red-100: #FFDFE0;
  --red-50:  #FFF1F2;

  /* Neutrals / supporting */
  --snow:           #FAF6F6; /* light section backgrounds */
  --ink-black:      #04080F; /* primary text */
  --baltic-blue:    #1A659E;
  --steel-azure:    #004E89;
  --alabaster-grey: #E0E1E0; /* borders, separators */
  --white:          #ffffff;

  /* Divider line – 50% black (used for footer/header separators) */
  --black-50: rgba(0, 0, 0, 0.5);

  /* Darkest footer band (one notch below ink-black) */
  --night: #02050A;

  /* Typography scale (Inter) */
  --h1: 70px;
  --h2: 54px;
  --h3: 41px;
  --h4: 31px;
  --h5: 24px;
  --h6: 18px;
  --copy-bold:  14px;
  --copy:       14px;
  --copy-small: 8px;

  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Spacing scale */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;

  /* Layout */
  --container: 1200px;
  --container-wide: 1440px;
  --radius: 4px;
  --btn-radius: 0; /* CTAs are square / "kanciaste" */
  --shadow-card: 0 12px 30px rgba(4, 8, 15, 0.10);
  --shadow-nav: 0 2px 16px rgba(4, 8, 15, 0.08);
  --transition: 0.25s ease;

  --header-height: 100px;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--copy);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-black);
  background: var(--snow); /* base page background = Snow */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, .h1 {
  font-size: var(--h1);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.5px;
}

h2, .h2 {
  font-size: var(--h2);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.4px;
}

h3, .h3 {
  font-size: var(--h3);
  font-weight: 400;
  line-height: 1.18;
}

h4, .h4 {
  font-size: var(--h4);
  font-weight: 400;
  line-height: 1.25;
}

h5, .h5 {
  font-size: var(--h5);
  font-weight: 400;
  line-height: 1.3;
}

h6, .h6 {
  font-size: var(--h6);
  font-weight: 400;
  line-height: 1.4;
}

p {
  font-size: var(--copy);
  line-height: 1.8;
}

strong, b {
  font-weight: 600;
}

.lead {
  font-size: 18px;
  line-height: 1.8;
}

.text-muted {
  color: #5a6470;
}

.text-red {
  color: var(--red-600);
}

/* --------------------------------------------------------------------------
   4. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.container--wide {
  max-width: var(--container-wide);
}

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

/* Contrasting accent section on the Snow base = Alabaster Grey */
.section--snow {
  background: var(--alabaster-grey);
}

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

.section__head {
  max-width: 720px;
  margin-bottom: var(--space-lg);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

/* Section eyebrow label – red, small, semibold */
.section-label {
  color: var(--red-600);
  font-size: var(--copy-bold);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.section__title {
  margin-bottom: 16px;
}

.section__text {
  color: #4a525c;
  font-size: 16px;
}

/* Utility spacing */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.text-center { text-align: center; }

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--ink-black);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}
