/*!
Theme Name: WIS17
Theme URI: http://wis17.agency/
Author: WIS17
Author URI: https://wis17.agency/
Description: Genknowme
Version: 1.0.0
*/

/* Root tokens*/
:root {
  --gnk-color-bg: #ffffff;
  --gnk-color-surface: #f8fafc;
  /* slate-50 */
  --gnk-color-surface-alt: #f1f5f9;
  /* slate-100 */
  --gnk-color-border: #0f172b;
  --gnk-color-primary: #0f172b;
  /* slate-400 */
  --gnk-color-lightblue: #90A1B9;
  /* slate-600 */
  --gnk-color-slate-blue: #45556c;
  /* slate-900 */
  --gnk-color-primary-soft: #1d293d;
  /* slate-800 */
  --gnk-color-text: #0f172a;
  /* slate-600 */
  --gnk-color-link: #0f172a;
  --gnk-color-link-hover: #020617;
  --gnk-radius-sm: 8px;
  --gnk-radius-md: 8px;
  --gnk-radius-lg: 8px;
  --gnk-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --gnk-spacing-section: 6rem;
  --gnk-gap-section: 3rem;
  --gnk-max-width: 1120px;
  --gnk-font-size-h1: 32px;
  --gnk-font-size-h2: 32px;
  --gnk-font-size-h3: 24px;
  --gnk-font-size-h4: 20px;
  --gnk-font-size-h5: 18px;
}

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

/* html {
  scroll-behavior: smooth;
} */

body {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-family: europa, sans-serif;
  color: var(--gnk-color-slate-blue);
  background-color: var(--gnk-color-bg);
  line-height: 1.5;
}

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

a {
  color: var(--gnk-color-link);
  text-decoration: none;
}

a:hover,
a:focus,
a:active {
  color: var(--gnk-color-link-hover);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.75em;
  line-height: 1.2;
}

h1 {
  font-size: var(--gnk-font-size-h1);
  font-weight: 100;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

h2 {
  font-size: var(--gnk-font-size-h2);
  font-weight: 100;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

h3 {
  font-size: var(--gnk-font-size-h3);
}

h4 {
  font-size: var(--gnk-font-size-h4);
}

h5 {
  font-size: var(--gnk-font-size-h5);
}

h6 {
  font-size: em;
}

h3,
h4,
h5,
h6 {
  margin-top: 0;
  font-weight: 600;
  color: var(--gnk-color-slate-blue);
  letter-spacing: -0.02em;
}

p {
  margin-top: 0;
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

ol,
ul {
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0;
  padding-left: 1rem;
}

/* Layout core */

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

.gnk-container {
  max-width: var(--gnk-max-width);
  margin: 0 auto;
}

section.has-background {
  background-color: var(--gnk-color-surface-alt);
}

/* Header / navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
}

.admin-bar .site-header {
  top: 32px;
}

.gnk-header {
  background: #ffffff;
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.09);
}

.gnk-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.site-branding img {
  max-height: 38px;
}

.site-title-link {
  font-weight: 600;
  color: var(--gnk-color-primary);
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.main-navigation a {
  color: var(--gnk-color-slate-blue);
  transition: all 0.25s linear;
}

.main-navigation a:hover,
.main-navigation .current-menu-item>a {
  color: var(--gnk-color-primary);
}

.main-navigation .swiss-excellence a {
  position: relative;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.main-navigation .swiss-excellence a::after {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  background: url(images/square-plus.svg) no-repeat center;
}

.toggle-menu {
  display: none;
}

.toggle-menu span {
  display: block;
  width: 26px;
  height: 26px;
  background: url(images/menu.svg) no-repeat center;
  background-size: contain;
}

/* Hero */

.gnk-hero {
  padding: 4rem 0;
}

.gnk-hero.has-image {
  padding: 2rem 0;
}

.gnk-hero__inner {
  display: flex;
  gap: 2rem;
}

.gnk-hero__inner>div {
  flex: 1;
}

.gnk-hero__left {
  display: flex;
  flex-direction: column;
}

.gnk-hero__eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gnk-color-slate-blue);
  margin-bottom: 0.75rem;
}

.gnk-hero__title {
  margin-bottom: 1rem;
  max-width: 736px;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.gnk-hero__title strong {
  font-weight: 600;
}

.gnk-hero__title img {
  width: 28px;
}

.gnk-hero__text {
  color: var(--gnk-color-slate-blue);
  max-width: 32rem;
  max-width: 736px;
}

.gnk-hero.has-image .gnk-hero__title,
.gnk-hero.has-image .gnk-hero__text {
  max-width: 498px;
}

.gnk-hero__actions,
.gnk-button__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.gnk-hero__right {
  display: flex;
  justify-content: flex-end;
}

.gnk-hero__image-placeholder {
  width: 100%;
  border-radius: var(--gnk-radius-lg);
  overflow: hidden;
}

/* Sections */

.gnk-section {
  padding: var(--gnk-spacing-section) 0;
  position: relative;
}

.gnk-section--band {
  background-color: #f1f5f9;
}

.gnk-section__header {
  margin-bottom: 2rem;
}

.gnk-section__header.row .col {
  flex-basis: 50%;
  flex-grow: 0;
}

.gnk-section__header--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gnk-section__title {
  margin-bottom: 0.5rem;
}

.gnk-section__title svg {
  width: 28px;
  height: 32px;
}

.gnk-section__title svg path {
  fill: currentColor;
}

.gnk-section__subtitle {
  font-size: var(--gnk-font-size-h4);

}

.gnk-section__intro {
  color: var(--gnk-color-slate-blue);
}

.gnk-section--media .gnk-section__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Grid helpers */

.d-flex {
  display: flex;
}

.gnk-grid {
  display: grid;
  gap: 2.5rem;
}

.gnk-grid__item p {
  color: var(--gnk-color-slate-blue);
}

.row {
  display: flex;
  gap: 2rem;
}

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

.row .col {
  flex: 1;
}

.gap-3 {
  gap: 1rem;
}

/* Figures / placeholders */

.gnk-figure__placeholder,
.gnk-logo-grid__placeholder {
  border-radius: var(--gnk-radius-md);
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Band section */

.gnk-band {
  display: grid;
  gap: 2rem;
  padding: 2rem;
  border-radius: var(--gnk-radius-lg);
  background: #e5edf7;
}

.gnk-band__content p {
  margin-top: 0.75rem;
  color: var(--gnk-color-slate-blue);
}

/* Buttons & links */

.gnk-btn,
.wpcf7-submit,
input[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: all 0.25s linear;
  gap: 10px;
}

.gnk-btn svg {
  transition: all 0.25s linear;
}

.gnk-btn:hover svg {
  transform: translateX(6px);
}

.gnk-btn--primary,
.wpcf7-submit,
input[type=submit] {
  background-color: var(--gnk-color-primary-soft);
  color: #ffffff;
}

.gnk-btn--primary:hover,
.wpcf7-submit:hover,
input[type=submit]:hover {
  background-color: var(--gnk-color-primary);
  text-decoration: none;
  color: var(--gnk-color-surface);
}

.gnk-btn--second {
  background-color: #ffffff;
  color: var(--gnk-color-primary-soft);
  border-color: var(--gnk-color-border);
}

.gnk-btn--second svg path {
  fill: var(--gnk-color-primary-soft) !important;
}

.gnk-btn--second:hover {
  background-color: #f9fafb;
}

.gnk-link-arrow {
  color: var(--gnk-color-primary-soft);
  font-weight: 500;
}

/* News list */

.gnk-news-list {
  max-width: 736px;
}

.gnk-news-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 0.9rem 0;
}

.gnk-news-item__date {
  color: var(--gnk-color-lightblue);
  line-height: 2em;
  font-weight: 100;
  white-space: nowrap;
}

.gnk-news-item__title {
  margin: 0;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
}

.gnk-news-item__title a {
  text-decoration: underline;
  text-decoration-thickness: 1px !important;
}

.gnk-news-item__title a:hover {
  text-decoration: underline;
}

/* Logos grid */

.gnk-logo-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2rem;
}

.gnk-logo-grid__placeholder {
  padding-bottom: 100%;
  position: relative;
}

.gnk-logo-grid__placeholder img {
  display: block;
  width: calc(100% - 2rem);
  height: calc(100% - 2rem);
  object-position: center;
  object-fit: contain;
  position: absolute;
  top: 50%;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  transform: translateY(-50%);
}

.gnk-section--tabs .tabs {
  display: flex;
  gap: 2rem;
  border-top: 1px solid #90A1B9;
  border-bottom: 1px solid #90A1B9;
}

.gnk-section--tabs .tabs>div {
  flex-basis: 50%;
  flex-grow: 0;
  flex-shrink: 1;
}

.gnk-section--tabs .tabs .tab-content {
  position: relative;
  padding: 1.5rem 0;
  overflow: hidden;
}

.gnk-section--tabs .tabs .tab-content a {
  text-decoration: underline;
}

.gnk-section--tabs .tabs .tab-nav>ul li {
  padding: 1.5rem 0;
  border-bottom: 1px solid #E2E8F0;
}

.gnk-section--tabs .tabs .tab-nav>ul li a {
  font-weight: 600;
  color: var(--gnk-color-lightblue);
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-size: var(--gnk-font-size-h4);
}

.gnk-section--tabs .tabs .tab-nav>ul li.active a {
  color: var(--gnk-color-slate-blue);
}

.gnk-section--tabs .tabs .tab-nav>ul li:last-child {
  border-bottom: none;
}

.gnk-section--tabs .tabs .tab-nav>ul,
.gnk-section--tabs .tabs .tab-content>ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.gnk-section--tabs .tabs .tab-nav>ul {
  position: sticky;
  top: 100px;
}

.gnk-section--tabs .tabs .tab-content ul li.active {
  position: relative;
  z-index: 1;
}

.gnk-section--tabs .tabs .tab-content ul li:not(.active) {
  opacity: 0;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.gnk-section--tabs .tabs .tab-content .tab-accordion-toggle {
  display: none;
}

.gnk-team {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.gnk-team-member {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.gnk-team-member__photo {
  flex: 0 0 320px;
  /* fixed image column */
  max-width: 100%;
}

.gnk-team-member__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--gnk-radius-lg);
  object-fit: cover;
}

.gnk-team-member__content {
  flex: 1;
}

.gnk-team-member__name {
  font-weight: 400;
  margin: 0 0 5px;
}

.gnk-team-member__role {
  margin: 0 0 0.5rem;
}

/* Pages */

.gnk-page__header {
  padding: var(--gnk-spacing-section) 0;
  background: var(--gnk-color-surface-alt);
}

.gnk-page__title {
  margin-bottom: 0.75rem;
}

.gnk-page__intro {
  color: var(--gnk-color-slate-blue);
  margin-bottom: 2rem;
}

.single-post .gnk-section-main,
.page .gnk-section-main {
  max-width: 736px;
  margin: 0 auto;
}

.single-post .entry-meta {
  color: var(--gnk-color-lightblue);
  margin-bottom: 2rem;
}

.single-post .entry-thumbnail {
  margin-bottom: 1rem;
}

.single-post .entry-thumbnail img {
  display: block;
  margin: 0 auto;
}

.single-post .entry-content ul,
.single-post .entry-content ol,
.page .entry-content ul,
.page .entry-content ol {
  margin-bottom: 1em;
}

.single-post .entry-content h2:not(:first-child),
.single-post .entry-content h3:not(:first-child),
.single-post .entry-content h4:not(:first-child),
.single-post .entry-content h5:not(:first-child),
.single-post .entry-content h6:not(:first-child),
.page .entry-content h2:not(:first-child),
.page .entry-content h3:not(:first-child),
.page .entry-content h4:not(:first-child) .page .entry-content h5:not(:first-child),
.page .entry-content h6:not(:first-child) {
  margin-top: 1em;
  margin-bottom: 0.5em;
}

/* FORM ELEMENTS */

input[type="text"],
input[type="password"],
input[type="color"],
input[type="date"],
input[type="datetime"],
input[type="datetime-local"],
input[type="email"],
input[type="number"],
input[type="range"],
input[type="search"],
input[type="tel"],
input[type="time"],
input[type="url"],
input[type="month"],
input[type="week"],
textarea {
  padding: 13px;
  outline: none !important;
  border-radius: var(--gnk-radius-lg);
  margin: 0;
  width: 100%;
  display: block;
  color: var(--gnk-color-slate-blue);
  line-height: 1.6;
  border: 1px solid var(--gnk-color-border);
  background: #ffffff;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  -ms-transition: all 0.2s;
  -o-transition: all 0.2s;
  transition: all 0.2s;
}

.full-width-cf .ins-contact-form-field input {
  width: 100%;
  position: relative;
}

.wpcf7-form-control-wrap {
  width: 100%;
  display: inline-block;
  margin-bottom: 1rem;
}

span.wpcf7-not-valid-tip {
  display: block;
  font-size: 14px;
  text-align: right;
}

.wpcf7-validation-errors {
  display: none !important;
}

.wpcf7 .wpcf7-select {
  -webkit-appearance: none;
  background: white url(./assets/img/select-arrow.png) no-repeat 95% 50%;
}

select {
  width: 100%;
  border: 1px solid var(--gnk-color-border);
  min-height: 49px;
  padding: 10px;
  border-radius: var(--gnk-radius-lg);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="color"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="range"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
textarea:focus,
.form-control:focus,
#commentform #comment:focus {
  border-color: var(--gnk-color-border);
}

input::-webkit-input-placeholder {
  font-family: inherit !important;
}

input[type="search"]::-webkit-input-placeholder {
  color: var(--gnk-color-slate-blue);
}

::placeholder {
  color: var(--gnk-color-slate-blue);
}

.wpcf7-list-item {
  margin-left: 0;
}

.wpcf7 form .wpcf7-response-output {
  margin-left: 0;
  margin-right: 0;
}

/* Footer */

.site-footer {
  background-color: var(--gnk-color-slate-blue);
  color: var(--gnk-color-surface-alt);
  padding: 96px 0;
}

.site-footer .gnk-container {
  display: flex;
  flex-direction: column;
  gap: var(--gnk-gap-section);
}

.site-footer a {
  color: inherit;
}

.footer__text a {
  text-decoration: underline;
}

.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6 {
  color: inherit;
}

.gnk-footer-main {
  padding: 2.75rem 0 2.25rem;
}

.footer_menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--gnk-gap-section) 0;
  border-top: 1px solid var(--gnk-color-lightblue);
  border-bottom: 1px solid var(--gnk-color-lightblue);
}

#footer-menu,
.footer_links ul,
.footer_logos ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.footer_logos ul {
  justify-content: space-between;
  display: grid;
  grid-template-columns: repeat(6, auto);
}

.footer_logos a {
  pointer-events: none;
}

.footer_logos img {
  width: auto;
  height: auto;
  max-width: 150px;
  max-height: 50px;
}

.footer_links svg {
  display: block;
}

iframe {
  width: 100%;
}

iframe[src*="youtube.com"],
iframe[src*="youtu.be"] {
  aspect-ratio: 16/9;
  height: auto;
  max-width: 100%;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

/* Responsive video wrapper */
.gnk-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 */
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--gnk-radius-lg);
  overflow: hidden;
}

.gnk-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Thumbnail */
.gnk-video__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Play button overlay */
.gnk-video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gnk-video__play-icon {
  width: 0;
  height: 0;
  border-left: 16px solid #f1f5f9;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.post-password-form input[type=submit] {
  margin-top: 1rem;
  margin-left: auto;
  display: flex;
  width: 100px;
}

.posts-navigation{
  max-width: var(--gnk-max-width);
  margin: 0 auto 4rem;
}



/* Responsive */

@media (max-width: 1199px) {
  .gnk-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 991px) {

  :root {
    --gnk-spacing-section: 4rem;
    --gnk-gap-section: 3rem;
    --gnk-max-width: 1120px;
    --gnk-font-size-h1: 26px;
    --gnk-font-size-h2: 26px;
    --gnk-font-size-h3: 20px;
    --gnk-font-size-h4: 18px;
    --gnk-font-size-h5: 16px;
  }

  body {
    font-size: 15px;
  }

  .main-navigation ul {
    gap: 1rem;
  }

  #footer-menu,
  .footer_links ul,
  .footer_logos ul {
    gap: 1rem;
  }

  .gnk-logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 859px) {
  .main-navigation ul {
    gap: 0.5rem;
  }

  #footer-menu,
  .footer_links ul,
  .footer_logos ul {
    gap: 0.5rem;
  }
}

@media (max-width: 767px) {

  .gnk-header__inner {
    flex-wrap: wrap;
  }

  .toggle-menu {
    display: block;
    cursor: pointer;
  }

  .main-navigation {
    margin-top: 1rem;
    width: 100%;
    display: none;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 1rem;
  }

  .gnk-section--media .row {
    flex-direction: column;
  }

  .gnk-section--media .row .col {
    width: 100%;
  }

  .gnk-news-item {
    gap: 0.15rem;
  }

  .gnk-team-member {
    flex-direction: column;
    gap: 1rem;
  }

  .gnk-team-member__photo {
    flex-basis: auto;
  }

  .gnk-section--tabs .tabs {
    flex-direction: column;
    gap: 0;
  }

  .gnk-section--tabs .tabs .tab-nav {
    display: none;
  }

  .gnk-section--tabs .tabs .tab-content .tab-accordion-toggle {
    display: block;
  }

  .gnk-section--tabs .tabs .tab-content>ul {
    gap: 1rem;
  }

  .gnk-section--tabs .tabs .tab-content ul li {
    opacity: 1 !important;
    position: relative !important;
  }

  .gnk-section--tabs .tabs .tab-content ul li .tab-panel {
    display: none;
  }

  .gnk-section--tabs .tabs .tab-content ul li.active .tab-panel {
    display: block;
    margin-bottom: 1rem;
  }

  .row.footer__text,
  .footer_menu {
    flex-direction: column;
  }

  .footer_menu {
    gap: 0.5rem;
  }

  .footer_logos ul {
    grid-template-columns: repeat(3, auto);
  }

  .footer_logos ul {
    gap: 2rem;
  }
}

@media (max-width: 579px) {

  .gnk-section__header.row .col {
    flex-basis: 75%;
  }

  .gnk-hero__inner {
    flex-direction: column-reverse;
  }

  .gnk-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #footer-menu {
    flex-direction: column;
  }

  .footer_links {
    margin-top: 1rem;
  }

  .footer_links ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer_links ul li:not(.social-icon) {
    width: 100%;
    text-align: center;
  }

  .footer_logos ul {
    grid-template-columns: repeat(2, auto);
  }
}

@media (min-width: 768px) {
  .gnk-hero__inner {
    align-items: center;
  }

  .gnk-news-item {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .gnk-footer__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}