/* Inkonel layer, on top of css/base.css.
   base.css carries the grid, the breakpoints and the type scale; this file
   holds what is Inkonel's: the Hanken Grotesk faces behind the Ink-* family
   names, the header layout, the catalogue filter and the form styling. */

/* --- fonts: same family names so the reference sheet keeps working ------- */
@font-face {
  font-family: Ink-L;
  src: url(../assets/fonts/hanken-latin-ext.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
  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;
}
@font-face {
  font-family: Ink-L;
  src: url(../assets/fonts/hanken-latin.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Ink-R;
  src: url(../assets/fonts/hanken-latin-ext.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
  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;
}
@font-face {
  font-family: Ink-R;
  src: url(../assets/fonts/hanken-latin.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Ink-M;
  src: url(../assets/fonts/hanken-latin-ext.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
  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;
}
@font-face {
  font-family: Ink-M;
  src: url(../assets/fonts/hanken-latin.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Ink-SB;
  src: url(../assets/fonts/hanken-latin.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
.h1,
.h2 {
  font-weight: 350;
}

/* --- logo: the reference mark is a square svg, ours is a wordmark -------- */
.logo-icon {
  width: auto;
  height: max(1.9em, 20px);
}

/* the reference toggles these two labels through its IX2 runtime */
.m-hamburger .close {
  display: none;
}
.m-hamburger.is-open .close {
  display: block;
}
.m-hamburger.is-open .open {
  display: none;
}

/* --- line icons sit where the reference had filled pictograms ----------- */
.icon-inside img[src*='assets/icons/'] {
  object-fit: contain;
  width: 55%;
  height: 55%;
}

/* --- catalogue: our rows carry data-* mirrors of the filter fields ------ */
.prod-grid[hidden] {
  display: none !important;
}
.checkbox-filter {
  cursor: pointer;
}

/* --- contact page ------------------------------------------------------- */
.ink-contact-grid {
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  display: grid;
}
.ink-contact-line {
  border-bottom: 1px solid #e6e6e61a;
  padding: 1.5em 0;
}
.ink-contact-value {
  color: var(--white);
  font-size: 1.9em;
  text-decoration: none;
  display: block;
}
a.ink-contact-value:hover {
  color: var(--primary);
}
.ink-form {
  flex-direction: column;
  gap: 1.2em;
  margin-top: 2em;
  display: flex;
}
.ink-form input,
.ink-form textarea {
  color: var(--white);
  background: none;
  border: 0;
  border-bottom: 1px solid #e6e6e633;
  padding: 1em 0;
  font-family: Ink-L, sans-serif;
  font-size: 1.2em;
}
.ink-form textarea {
  resize: vertical;
  min-height: 7em;
}
.ink-form input:focus,
.ink-form textarea:focus {
  border-bottom-color: var(--primary);
  outline: 0;
}
.ink-consent {
  color: #e6e6e673;
  align-items: flex-start;
  gap: 0.7em;
  font-size: 1.05em;
  display: flex;
}
.ink-consent input {
  border-bottom: 0;
  width: auto;
  margin-top: 0.3em;
  padding: 0;
}
.ink-form button {
  cursor: pointer;
  background: none;
  border: 0;
  align-self: flex-start;
  padding: 0;
}
@media screen and (max-width: 991px) {
  .ink-contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --- header: logo left · menu in the middle · language right -----------
   The reference spreads three link groups across the right 62% of the bar
   (`.rg-flex` 62% + auto margins on `.main-menu` / `.additional-menu`), which
   leaves the big gaps. Here the bar is three zones instead: the logo and the
   language switcher take an equal share on either side, so the menu between
   them lands on the optical centre of the page. Desktop only — below 768px
   the reference hides `.rg-flex` and shows the hamburger, and that stays. */
@media screen and (min-width: 768px) {
  .header-flex {
    justify-content: space-between;
    grid-column-gap: 16px;
  }
  .header-flex > .logo-link,
  .header-flex > .logo-link.w--current {
    flex: 1 1 0%;
    width: auto;
    min-width: 0;
    display: flex;
    align-items: center;
  }
  .header-flex > .rg-flex {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    justify-content: center;
  }
  .header-flex > .locals_box {
    flex: 1 1 0%;
    min-width: 0;
    margin-left: 0;
    display: flex;
    justify-content: flex-end;
  }
  /* the groups keep the reference's own 6px rhythm; only the auto margins
     that created the spread are dropped */
  .rg-flex .main-menu,
  .rg-flex .serv-tech,
  .rg-flex .additional-menu {
    margin: 0;
    display: flex;
  }
  .rg-flex .header-link {
    margin-left: 0;
  }
  .rg-flex .additional-menu .header-link:last-child {
    margin-right: 0;
  }
}

/* Below 768px the reference hides the desktop links and shows the hamburger,
   which keeps its own `margin-left: auto`. The switcher moved to the end of
   the DOM for the desktop layout, so put it back next to the logo here — the
   reference's own mobile order. */
@media screen and (max-width: 767px) {
  .header-flex > .logo-link { order: 1; }
  .header-flex > .locals_box { order: 2; }
  .header-flex > .m-hamburger { order: 3; }
}
