/* ==========================================================================
   SANSTRAP applicator page – stylesheet (aplikator.tehnik.expert)
   Same look as the main website (tehnik.expert): paper background,
   navy text, steel-blue accent lines, monospaced typeface.
   Brand rule: red (#DA291C) appears ONLY in the underscore of the logo,
   so it is not used anywhere in this file.
   Mobile first: basic rules are for phones, @media blocks add the layout
   for tablets (768 px) and desktops (1024 px).
   ========================================================================== */

/* 1. BRAND COLOURS AND SIZES – identical to the main website */
:root {
  --color-blue: #003865;
  --color-steel: #4D6B89;
  --color-graphite: #50565E;
  --color-paper: #F2EFE9;
  --color-white: #FFFFFF;
  --color-outline: rgba(77, 107, 137, 0.25);
  --paper-texture: url("../img/paper-cloud.webp");
  --font-main: Consolas, ui-monospace, "SF Mono", Menlo, Monaco, "Cascadia Mono",
               "Liberation Mono", "DejaVu Sans Mono", "Roboto Mono", "Droid Sans Mono",
               monospace;
  --container-width: 72rem;
  --space: 1.25rem;
  --header-height: 7rem;     /* phone: header has two rows */
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);   /* menu jumps stay below the header */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--color-graphite);
  background-color: var(--color-paper);
  background-image: var(--paper-texture);
  background-size: 600px auto;
  background-attachment: fixed;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--color-blue); line-height: 1.2; }
a { color: var(--color-blue); }

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

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: var(--space); top: var(--space); z-index: 20;
  padding: 0.5rem 1rem; background: var(--color-white);
}

.nowrap { white-space: nowrap; }

/* 3. HEADER – sticky, paper background, steel-blue line underneath.
   Phone: logo and languages in row 1, menu in row 2. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--color-paper);
  background-image: var(--paper-texture);
  background-size: 600px auto;
  background-attachment: fixed;
  border-bottom: 3px solid var(--color-steel);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 0.75rem;
}

.brand img { width: 160px; }

.main-nav { order: 3; width: 100%; }

.main-nav ul,
.lang-switch {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav ul {
  justify-content: space-between;
  gap: 0.25rem;
  overflow-x: auto;
  white-space: nowrap;
  font-size: clamp(0.75rem, 3.6vw, 0.875rem);
}

.main-nav a,
.lang-switch a { font-weight: 600; text-decoration: none; }
.main-nav a { display: inline-block; padding-block: 0.25rem; }
.main-nav a:hover,
.main-nav a:focus { color: var(--color-steel); }

/* Contact: outlined button */
.main-nav .nav-cta {
  padding: 0.25rem 0.5rem;
  border: 2px solid var(--color-blue);
  border-radius: 4px;
}
.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus { color: var(--color-white); background: var(--color-blue); }

.lang-switch { gap: 0.125rem; }
.lang-switch a {
  padding: 0.25rem 0.3rem;
  font-size: 0.8rem;
  border: 1px solid transparent;
  border-radius: 4px;
}
.lang-switch a[aria-current="true"] { border-color: var(--color-blue); }

/* 4. BUTTONS */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: var(--color-white);
  text-decoration: none;
  background: var(--color-blue);
  border: 2px solid var(--color-blue);
  border-radius: 4px;
}
.button:hover,
.button:focus { background: var(--color-steel); border-color: var(--color-steel); }

/* Second button: outline only */
.button-outline { color: var(--color-blue); background: transparent; }
.button-outline:hover,
.button-outline:focus { color: var(--color-white); }

/* 5. HERO – text and 3D model. Phone: stacked; desktop: side by side */
.hero { padding-block: 2rem 3rem; }

.hero-grid { display: grid; gap: 2rem; align-items: center; }

/* Small label above the product name ("Manual packaging tool") */
.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-steel);
}

.hero h1 { margin: 0 0 1rem; font-size: clamp(1.6rem, 4.5vw, 2.4rem); }

.lead { margin: 0 0 1.25rem; font-size: 1.02rem; max-width: 38rem; }

/* Key facts: small outlined labels in one wrapping row */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 0.2rem 0.7rem;
  font-size: 0.82rem;
  color: var(--color-blue);
  border: 1px solid var(--color-steel);
  border-radius: 999px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }

/* 3D model: rendered on white, so it gets a thin frame like a drawing sheet */
.hero-figure {
  margin: 0;
  padding: 0.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-outline);
}

/* 6. SECTIONS – thin steel-blue line between sections */
.section {
  padding-block: 3rem;
  border-top: 1px solid var(--color-outline);
}
.section-tight { padding-block: 2rem; }
.section h2 { margin-top: 0; }

/* 7. STEPS – phone: one column; tablet: 2–3; desktop: all 5 in one row */
.steps {
  display: grid;
  gap: var(--space);
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-outline);
}

.step img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.step p { margin: 0; padding: 0.9rem 1rem 1.1rem; font-size: 0.9rem; }

/* Step number "01" … "05" in navy, on its own line above the text */
.step-number {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-blue);
}

/* 8. DATA – technical data, materials, terms. Phone: stacked; desktop: 3 columns */
.data-grid { display: grid; gap: var(--space); }

.card {
  padding: 1.5rem;
  border: 1px solid var(--color-outline);
  border-top: 4px solid var(--color-steel);
}
.card h2 { font-size: 1.1rem; margin-bottom: 1rem; }

/* Label – value pairs: label on the left, value on the right */
.data-list {
  display: grid;
  grid-template-columns: minmax(7rem, auto) 1fr;
  gap: 0.45rem 1rem;
  margin: 0;
  font-size: 0.9rem;
}
.data-list dt { font-weight: 600; color: var(--color-blue); }
.data-list dd { margin: 0; }

.plain-list { margin: 0; padding-left: 1.1rem; font-size: 0.9rem; }
.plain-list li + li { margin-top: 0.35rem; }

.note { margin: 1rem 0 0; font-size: 0.85rem; color: var(--color-steel); }

/* 9. PROVEN DESIGN – years badge next to the text */
.proven {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--color-outline);
  border-left: 4px solid var(--color-steel);
}

.proven-badge { margin: 0; color: var(--color-blue); }
.proven-badge strong { display: block; font-size: 1.6rem; line-height: 1.1; }
.proven-badge span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.proven-text { margin: 0; font-size: 0.95rem; }

/* 10. CALL TO ACTION */
.cta { max-width: 40rem; }
.cta h2 { margin-bottom: 0.5rem; }
.cta p { margin: 0 0 1rem; }
.cta .cta-mail { margin: 1rem 0 0; font-size: 0.9rem; }

/* 11. FOOTER – navy band with the official company details */
.site-footer {
  padding-block: 1.5rem;
  font-size: 0.8rem;
  color: var(--color-white);
  background: var(--color-blue);
}
.site-footer p { margin: 0; }
.site-footer a { color: inherit; text-underline-offset: 0.15em; }
.footer-legal .sep { margin-inline: 0.35rem; }

/* 12. TABLET (768 px and wider) */
@media (min-width: 768px) {
  :root { --header-height: 5rem; }

  .brand img { width: 200px; }
  .main-nav { order: 0; width: auto; }
  .main-nav ul { gap: 1.5rem; font-size: 0.95rem; overflow: visible; }
  .main-nav .nav-cta { padding: 0.35rem 0.9rem; }
  .lang-switch { gap: 0.25rem; }
  .lang-switch a { padding: 0.25rem 0.5rem; font-size: 0.9rem; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .proven { grid-template-columns: auto 1fr; gap: 2rem; }
}

/* 13. DESKTOP (1024 px and wider) */
@media (min-width: 1024px) {
  .hero { padding-block: 3rem 4rem; }
  .hero-grid { grid-template-columns: 5fr 6fr; gap: 3rem; }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .step p { font-size: 0.85rem; }
  .data-grid { grid-template-columns: 1.1fr 1fr 1.1fr; }
}

/* 14. INTERACTIVE 3D MODEL (hero)
   Light grey studio background, like a 3D viewer, inside the thin frame.
   The viewer keeps the proportions of the still image (16 : 9),
   so the page does not jump when the model has loaded. */
.hero-3d {
  padding: 0;
  background: radial-gradient(ellipse at 50% 40%, #FAFAFA 0%, #E4E4E4 75%, #D9D9D9 100%);
}

.hero-3d model-viewer {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  background: transparent;
  --poster-color: transparent;     /* no grey box behind the poster image */
  --progress-bar-color: var(--color-steel);
  cursor: grab;
}
.hero-3d model-viewer:active { cursor: grabbing; }

/* Poster (still image): fills the viewer until the model is ready */
.hero-3d model-viewer img[slot="poster"] {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Short hint under the model: "Drag to rotate · scroll or pinch to zoom" */
.model-hint {
  margin: 0;
  padding: 0.4rem 0.75rem 0.5rem;
  font-size: 0.75rem;
  text-align: center;
  color: var(--color-steel);
  background: var(--color-paper);
  border-top: 1px solid var(--color-outline);
}
