/* Design tokens, reset, typography and buttons shared by every section.
   Palette comes from the client's bear logo (navy + steel blue) plus the
   brushed-steel greys of the equipment itself. */

:root {
  --navy: #12325b;
  --steel-blue: #2f6ba1; /* logo blue, darkened to pass 4.5:1 on frost and white */
  --frost: #eef3f7;
  --stainless: #d5dce2;
  --stainless-dark: #9aa6b1;
  --ink: #15212d;
  --ink-soft: #4a5a69;
  --white: #ffffff;
  --whatsapp: #157a3f; /* 5.4:1 with white text */

  /* Temperature colours: the tag colour tells you what the unit does.
     Each passes 4.5:1 on its own 12% tint (the tag background). */
  --mode-freeze: #1d4f91;
  --mode-cool: #1b6c9c;
  --mode-heat: #9a540c;
  --mode-machine: #5b6670;

  --font-display: 'Secular One', 'IBM Plex Sans Hebrew', sans-serif;
  --font-body: 'IBM Plex Sans Hebrew', 'Segoe UI', Arial, sans-serif;

  /* Type scale: perfect fourth (1.333) from a 17px body. */
  --text-small: 0.875rem;
  --text-body: 1.0625rem;
  --text-large: 1.25rem;
  --text-h3: 1.4rem;
  --text-h2: clamp(1.75rem, 1.4rem + 1.4vw, 2.35rem);
  --text-h1: clamp(2.2rem, 1.5rem + 3vw, 3.6rem);

  --wrap: 100rem; /* wide: the catalogue grid is the page's main content */
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --radius-small: 6px;
  --radius-large: 14px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--frost);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400; /* Secular One has a single heavy weight */
  line-height: 1.15;
  color: var(--navy);
  margin: 0;
}

p { margin: 0; text-wrap: pretty; } /* avoids one-word last lines */

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

:focus-visible {
  outline: 3px solid var(--steel-blue);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: var(--white);
}
.skip-link:focus { top: 1rem; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.65rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--radius-small);
  font: 600 var(--text-body) / 1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.button-small { min-height: 2.5rem; padding: 0.4rem 1rem; font-size: var(--text-small); }

.button-primary { background: var(--navy); color: var(--white); }
.button-primary:hover { background: #0c2442; }

.button-whatsapp { background: var(--whatsapp); color: var(--white); }
.button-whatsapp:hover { background: #0f6532; }

.button-quiet { background: transparent; color: var(--navy); border-color: var(--stainless-dark); }
.button-quiet:hover { border-color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
