/* ==========================================================================
   Atlas Umzüge — Base
   Reset, design tokens, typography, layout primitives
   ========================================================================== */

/* --- Fonts (self-hosted: no third-party requests, DSGVO-konform) --------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Reset --------------------------------------------------------------- */

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

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

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

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

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

img {
  height: auto;
}

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

button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

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

/* --- Design tokens ------------------------------------------------------- */

:root {
  /* Brand — extracted from the official Atlas logo artwork */
  --color-primary: #a0191d;          /* Atlas crimson */
  --color-primary-dark: #85141a;
  --color-primary-soft: #c8442f;
  --color-brown: #352c1a;            /* Atlas warm brown */

  /* Surfaces */
  --color-dark: #14110d;             /* page dark */
  --color-dark-2: #201c17;           /* raised dark surface */
  --color-dark-3: #2b261f;           /* input / card on dark */
  --color-cream: #fcfaf1;            /* warm off-white section */
  --color-white: #ffffff;

  /* Text — all three clear WCAG AA (4.5:1) on white and on the cream surface */
  --color-heading: #14110d;
  --color-text: #6f6a60;
  --color-text-dark: #5c574f;
  --color-text-light: #78726a;
  --color-on-dark: #ffffff;
  --color-on-dark-muted: rgba(255, 255, 255, 0.72);
  --color-on-dark-faint: rgba(255, 255, 255, 0.5);

  /* Lines */
  --color-border: #ddd9d0;
  --color-border-light: rgba(255, 255, 255, 0.16);
  --color-border-lighter: rgba(255, 255, 255, 0.1);

  /* Type scale */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --fs-h1: 75px;   --lh-h1: 85px;  --ls-h1: -2.25px;
  --fs-h2: 54px;   --lh-h2: 62px;  --ls-h2: -1.62px;
  --fs-h3: 40px;   --lh-h3: 52px;  --ls-h3: -0.6px;
  --fs-h4: 28px;   --lh-h4: 36px;  --ls-h4: -0.9px;
  --fs-h5: 20px;   --lh-h5: 32px;  --ls-h5: -0.3px;
  --fs-h6: 18px;   --lh-h6: 28px;  --ls-h6: -0.6px;
  --fs-display: 80px; --lh-display: 90px; --ls-display: -2.4px;
  --fs-lead: 28px; --lh-lead: 36px; --ls-lead: -0.84px;

  --fs-body: 16px;    --lh-body: 26px;
  --fs-body-lg: 18px; --lh-body-lg: 28px;
  --fs-body-sm: 14px; --lh-body-sm: 24px;
  --fs-eyebrow: 17px; --lh-eyebrow: 26px;

  --fw-light: 300;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Layout */
  --container: 1330px;
  --container-wide: 1720px;
  --gutter: 25px;
  --section-space: 100px;

  --radius-sm: 10px;
  --radius-pill: 200px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.2s;
  --t-base: 0.35s;
  --t-slow: 0.6s;

  --header-height: 104px;
}

/* --- Base elements ------------------------------------------------------- */

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-normal);
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  font-weight: var(--fw-medium);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); }
h5 { font-size: var(--fs-h5); line-height: var(--lh-h5); letter-spacing: var(--ls-h5); }
h6 { font-size: var(--fs-h6); line-height: var(--lh-h6); letter-spacing: var(--ls-h6); }

p { text-wrap: pretty; }

strong { font-weight: var(--fw-semibold); color: var(--color-heading); }

::selection {
  background-color: var(--color-primary);
  color: #fff;
}

/* --- Focus ---------------------------------------------------------------
   Visible for keyboard users, suppressed for pointer users.               */

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

.on-dark :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible {
  outline-color: #fff;
}

/* --- Skip link ----------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% -120%;
  z-index: 200;
  padding: 14px 24px;
  background-color: var(--color-primary);
  color: #fff;
  font-weight: var(--fw-medium);
  transition: translate var(--t-fast) var(--ease-out);
}

.skip-link:focus {
  translate: -50% 0;
}

/* --- Layout primitives --------------------------------------------------- */

/* The viewport is viewport-fit=cover so the WhatsApp widget can clear the iOS
   home indicator. That also lets landscape content run under the notch, so the
   gutter grows to the safe area when there is one. Resolves to --gutter on
   every device without insets. */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

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

.container--flush {
  max-width: var(--container-wide);
  padding-inline: 0;
}

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

.section--top { padding-top: var(--section-space); }
.section--bottom { padding-bottom: var(--section-space); }

.section--cream { background-color: var(--color-cream); }
.section--dark { background-color: var(--color-dark); }

/* --- Utilities ----------------------------------------------------------- */

.text-center { text-align: center; }
.text-white { color: var(--color-white); }

.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;
}

.no-scroll {
  overflow: hidden;
}
