/* ==========================================================================
   tfblanken.com — stylesheet
   Colours and sizes copied from the original WordPress (Stockholm) theme.
   ========================================================================== */

/* Roboto (variable font, self-hosted: no requests to Google) */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/roboto.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("../fonts/roboto-italic.woff2") format("woff2"); }

:root {
  --green: #4f7942;      /* link & icon colour */
  --line: #b0b0b0;       /* thin grey lines */
  --sidebar: 260px;
  --content: 950px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 23px;
  color: #6a6a6a;
  background: #fff;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }
strong, b { font-weight: 500; color: inherit; }

/* ---------- Sidebar (desktop) ---------- */

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar);
  padding: 50px 40px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10;
}

.logo img { width: 180px; height: auto; }

.menu-toggle { display: none; }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul > li > a,
.nav > ul > li > span {
  display: inline-block;
  font-size: 18px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: 1px;
  text-transform: lowercase;
  color: #000;
}
.nav > ul > li > span { cursor: default; }
.nav a:hover { text-decoration: none; }
.nav > ul > li > a:hover,
.nav > ul > li > span:hover,
.nav .current > a,
.nav .current > span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.nav .sub { display: none; }
.nav .open .sub,
.nav li:hover > .sub { display: block; }
.nav .sub a {
  display: inline-block;
  font-size: 18px;
  font-weight: 300;
  line-height: 20px;
  padding: 5px 0;
  letter-spacing: 1px;
  text-transform: lowercase;
  color: #000;
}
.nav .sub a:hover, .nav .sub .current a { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Main content ---------- */

.main { margin-left: var(--sidebar); min-height: 100vh; }

.content {
  max-width: var(--content);
  margin: 0 auto;
  padding: 70px 10px 60px;
  color: #000;
  font-weight: 400;
}

h1 {
  margin: 0 0 25px;
  font-size: 20px;
  font-weight: 500;
  line-height: 20px;
  text-transform: lowercase;
  text-align: center;
  color: #000;
}

h2.section {
  margin: 45px 0 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #000;
  font-size: 16px;
  font-weight: 600;
  line-height: 16px;
  color: #000;
}
h1 + h2.section { margin-top: 0; }

.lead { font-size: 16px; font-weight: 600; line-height: 22px; margin: 0 0 20px; }

.text p { margin: 0 0 15px; }

.figure { width: 100%; height: auto; margin: 0 0 20px; }

.columns { display: flex; gap: 40px; align-items: flex-start; }
.column { flex: 1 1 0; min-width: 0; }

/* ---------- Cards ---------- */

.cards { display: flex; flex-wrap: wrap; gap: 20px; margin: 0 0 20px; }
.cards.cols-4 > .card { width: calc((100% - 60px) / 4); }
.cards.cols-2 > .card { width: calc((100% - 20px) / 2); }

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #000;
  box-shadow: 0 0 3px 0 rgba(0, 0, 0, .5);
  transition: box-shadow .2s ease;
  padding-bottom: 10px;
}
a.card:hover { box-shadow: 0 0 10px 1px rgba(0, 0, 0, .5); text-decoration: none; }

.card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.cards.cols-2 .card-img img { height: 250px; }
.cards.contain .card { padding: 10px; }
.cards.contain .card-img img { height: 150px; object-fit: contain; }

.card h3 {
  margin: 20px 10px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 16px;
  color: #000;
}
.cards.contain .card h3 { margin: 20px 0 0; }

.card-banner {
  padding: 175px 10px 10px;
  background-image: linear-gradient(180deg, var(--green) 0%, #000 100%);
}
.card-banner h3 { margin: 0; color: #fff; }

.card-text { margin: 20px 10px 0; }
.cards.contain .card-text { margin: 20px 0 0; }
.card-text p { margin: 0 0 15px; }
.card-text p:last-child { margin-bottom: 0; }

/* ---------- Home page ---------- */

.home .main {
  min-height: 100vh;
  background: url("../img/2024/01/slaap_symposium2-scaled.jpg") center / cover no-repeat fixed;
}
.home .content {
  padding: 0;
  display: flex;
  justify-content: flex-end;
  min-height: 100vh;
}
.intro {
  width: 406px;
  min-height: 100vh;
  padding: 40px;
  background: rgba(255, 255, 255, .84);
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 25px;
}
.intro p { margin: 0 0 15px; }
.intro a strong, .intro strong { font-weight: 700; }

.social { display: flex; justify-content: center; gap: 22px; margin-top: 35px; }
.social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.social a:hover { transform: scale(.9); }
.social svg { width: 20px; height: 20px; fill: #fff; }

/* ---------- Small screens ---------- */

@media (max-width: 1000px) {
  .sidebar {
    position: sticky;
    bottom: auto;
    width: 100%;
    height: auto;
    padding: 0 20px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: 136px;
  }
  .menu-toggle {
    display: block;
    position: absolute;
    left: 20px; top: 50%;
    transform: translateY(-50%);
    background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .menu-toggle span { display: block; width: 24px; height: 3px; background: #000; margin: 4px 0; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    padding: 10px 30px 20px;
    border-top: 1px solid #eee;
    box-shadow: 0 6px 10px rgba(0,0,0,.08);
  }
  .menu-open .nav { display: block; }
  .nav .sub { display: block; padding-left: 15px; }
  .main { margin-left: 0; min-height: 0; }
  .content { padding: 30px 20px 50px; }
  .cards.cols-4 > .card { width: calc((100% - 20px) / 2); }
  .columns { flex-direction: column; }
  .column { flex-basis: auto !important; width: 100%; }

  .home .main { min-height: calc(100vh - 136px); background-attachment: scroll; }
  .home .content { justify-content: center; align-items: center; padding: 60px 20px; min-height: calc(100vh - 136px); }
  .intro {
    width: 100%;
    max-width: 580px;
    min-height: 0;
    padding: 50px 50px 60px;
    background: #fff;
    box-shadow: 0 0 10px 5px rgba(0, 0, 0, .5);
    font-size: 18px;
    line-height: 30px;
  }
}

@media (max-width: 600px) {
  .cards.cols-4 > .card, .cards.cols-2 > .card { width: 100%; }
  .home .content { padding: 60px 15px 40px; }
  .intro { padding: 30px 25px 40px; font-size: 16px; line-height: 26px; }
}
