/* Site of TalentDEV (www.talentdev.nl). Loaded after lib/tokens.css, lib/base.css and lib/elements.css (from
   DEV/web-elementen). Everything here is specific to this site and starts with td-, except where a site class sits on
   an element of the library (td-nav on the header menu). */

/* ==== Header: the language link sits before the button (button on the far right) ==== */
.header .td-nav + .header-lang { margin-left: 0; }
.header .td-cta { margin-left: 0; }
@media (max-width: 60em) { .header .td-nav + .header-lang { margin-left: auto; } }

/* ==== Header: on a phone and tablet the menu sits on a second row (the library hides it there) ==== */
@media (max-width: 60em) {
  .header-in { flex-wrap: wrap; row-gap: .2rem; min-height: 0; padding-top: .7rem; }
  .header-nav.td-nav { display: flex; order: 5; width: 100%; gap: 1.25rem; overflow-x: auto; padding: 0 0 .7rem; font-size: .95rem; }
}

/* ==== Shared bits ==== */
.td-kicker { margin: 0 0 .9rem; font-size: .95rem; font-weight: 600; color: var(--muted); }
.td-actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }

/* A photo, or the place for one that is still to come: brand gradient, the mark, and a line saying what goes here */
.td-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.td-photo { position: relative; display: grid; place-items: center; margin: 0; overflow: hidden; border-radius: var(--r-panel); background: var(--brand-gradient); color: var(--on-dark-muted); }
.td-photo .logo-mark { width: 38%; max-width: 9rem; opacity: .35; }
.td-photo .logo-l { fill: var(--brand-steel); }
.td-photo .logo-d { fill: #fff; }
.td-photo figcaption { position: absolute; left: 1rem; bottom: .9rem; font-size: .8rem; }
.td-photo-hero { aspect-ratio: 4 / 5; }
.td-photo-portrait { aspect-ratio: 4 / 5; }
/* Which part of each photo stays in view when it is cut to the shape of its place */
.td-photo-hero img { object-position: 50% 0; }
.td-photo-portrait img { object-position: 50% 8%; }

/* ==== Hero ==== */
.td-hero { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 7vw, 5.5rem); }
.td-hero-in { display: grid; gap: 2.5rem; align-items: center; }
/* Why, how, what: three short paragraphs that belong together, in this order */
.td-why { max-width: 36rem; margin: 0 0 2rem; }
.td-why p { margin: 0 0 .8rem; color: var(--muted); }
.td-why .td-why-1 { font-size: 1.25rem; font-weight: 600; line-height: 1.45; color: var(--text); }
@media (min-width: 52em) { .td-hero-in { grid-template-columns: 1.25fr .75fr; gap: 4rem; } }
@media (max-width: 51.99em) { .td-photo-hero { max-width: 24rem; aspect-ratio: 1; } }

/* "Behind TalentDEV" on the front page sits right under the four service cards, at the distance between the cards */
.td-home-services { padding-bottom: 1rem; }
.td-teaser { padding-top: 0; }
/* No panel: a portrait and a few lines on the page itself, so it reads differently from the cards above it */
.td-teaser-in { display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; align-items: center; padding-top: 2.5rem; }
.td-teaser-face { width: 9rem; height: 11rem; border-radius: var(--r-panel); object-fit: cover; object-position: 50% 12%; }
.td-teaser .td-kicker { margin-bottom: .6rem; font-size: .95rem; letter-spacing: 0; }
.td-teaser-text { max-width: 44rem; margin: 0 0 .8rem; font: 600 1.55rem/1.3 var(--display); text-wrap: balance; }
.td-teaser-by { margin: 0; font-size: .95rem; color: var(--muted); }
.td-teaser-link { display: inline-block; margin-top: 1rem; }
@media (max-width: 43.99em) {
  .td-teaser-in { grid-template-columns: 1fr; gap: 1.25rem; }
  .td-teaser-face { width: 6.5rem; height: 8rem; }
  .td-teaser-text { font-size: 1.3rem; }
}

/* Head of a sub page */
.td-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.td-head .lead { max-width: 40rem; color: var(--muted); }

/* ==== Services, short: four cards; the title is the link and covers the card ==== */
.td-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2.25rem 0 0; padding: 0; list-style: none; }
.td-card { position: relative; display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--card-shadow); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.td-card-nr { display: block; margin-bottom: 1.6rem; font: 700 1rem/1 var(--display); color: var(--accent-large); font-variant-numeric: tabular-nums; }
.td-card-title { margin: 0 0 .5rem; font-size: 1.25rem; }
.td-card-title a { text-decoration: none; }
.td-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.td-card-text { margin: 0 0 1.25rem; font-size: .98rem; color: var(--muted); }
.td-card-more { margin-top: auto; font-size: .92rem; font-weight: 600; }
.td-card:hover { border-color: var(--hover-tint); transform: translateY(-3px); }
.td-card:hover .td-card-nr { color: var(--hover-tint); }
@media (max-width: 60em) { .td-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 36em) { .td-cards { grid-template-columns: 1fr; } }

/* ==== Services, full: one row per service, head left and body right ==== */
.td-services { display: grid; gap: 0; }
.td-service { display: grid; gap: 1rem 3rem; padding: 2.25rem 0; border-top: 1px solid var(--line); }
.td-service:last-child { border-bottom: 1px solid var(--line); }
.td-service-head .td-card-nr { margin-bottom: .9rem; }
.td-service-for { margin: 0; color: var(--muted); font-size: .95rem; }
.td-service-for span { font-weight: 700; color: var(--text); }
.td-service-body p { max-width: 38rem; margin: 0 0 1rem; }
.td-points { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.td-points li { padding: .3rem .75rem; border-radius: 99px; background: var(--hl-bg); font-size: .88rem; font-weight: 600; }
@media (min-width: 52em) { .td-service { grid-template-columns: .9fr 1.1fr; } }

/* ==== About ==== */
.td-about-in { display: grid; gap: 2.5rem; align-items: center; }
.td-about-role { margin: -.4rem 0 1.25rem; font-weight: 600; color: var(--muted); }
.td-about-text { max-width: 36rem; margin: 0 0 1.5rem; font-size: 1.12rem; }
@media (min-width: 52em) { .td-about-in { grid-template-columns: .7fr 1.3fr; gap: 4rem; } }
@media (max-width: 51.99em) { .td-photo-portrait { max-width: 20rem; aspect-ratio: 1; } }

/* Direct contact: the logos of mail, WhatsApp and LinkedIn ("in" without its square), all in the colour of the text */
.td-icons { display: flex; align-items: center; gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.td-icon { display: block; color: var(--text); transition: transform .3s var(--ease), color .25s; }
.td-icon svg { display: block; width: 30px; height: 30px; fill: currentColor; }
.td-icon-in svg { width: 26px; height: 26px; }
.td-icon:hover { transform: translateY(-2px); color: var(--hover-tint); }
@media (prefers-reduced-motion: reduce) { .td-icon:hover { transform: none; } }
.flow-intro .td-direct-label { margin: 1.75rem 0 .5rem; font-weight: 700; }

/* ==== CV, full: roles and results side by side ==== */
.td-cv { display: grid; gap: 2.5rem; margin-top: 1.5rem; }
@media (min-width: 52em) { .td-cv { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.td-cv-h { margin-bottom: 1rem; font-size: 1.05rem; color: var(--muted); }
.td-roles, .td-results { margin: 0; padding: 0; list-style: none; }
.td-roles li, .td-results li { display: grid; grid-template-columns: 7.5rem 1fr; column-gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.td-roles li b { font-weight: 700; }
.td-roles li span:last-child { grid-column: 2; color: var(--muted); font-size: .95rem; }
.td-roles-years { color: var(--muted); font-size: .95rem; }
.td-results-link { grid-column: 2; font-size: .88rem; color: var(--muted); text-underline-offset: 3px; }
.td-results-link:hover { color: var(--text); }
@media (max-width: 36em) { .td-roles li, .td-results li { grid-template-columns: 5.5rem 1fr; } }

/* ==== CV, short: three highlights ==== */
.td-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; margin: 1.5rem 0 1.75rem; }
.td-stat { display: grid; grid-template-areas: "value" "label" "note"; padding: 1.4rem 1.5rem; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--card-shadow); }
.td-stat dt { font-weight: 700; }
.td-stat dd { margin: 0; }
.td-stat dd b { display: block; margin-bottom: .4rem; font: 700 clamp(2.4rem, 5vw, 3.2rem)/1 var(--display); letter-spacing: -.03em; color: var(--accent-large); }
.td-stat dd small { display: block; color: var(--muted); font-size: .88rem; }
.td-stat dd { display: contents; }
.td-stat dd b { grid-area: value; }
.td-stat dt { grid-area: label; }
.td-stat dd small { grid-area: note; }

/* ==== Apps ==== */
.td-apps-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.td-apps-head .intro { margin: 0; }
/* Two compact app tiles side by side (the tile of the library, without lead and facts): text on top, the window of
   the app rises from the bottom edge. Whiteboard has its own blue, as on the apps site. */
.td-tiles { grid-template-columns: 1fr 1fr; gap: 1rem; }
.td-tiles .tile { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.td-tiles .tile-text { padding: 1.5rem 1.5rem 1rem; }
.td-tiles .tile-icon { width: 48px; height: 48px; }
.td-tiles .tile-promise { margin-bottom: 1.1rem; font-size: 1.5rem; }
.td-tiles .tile-link { margin-bottom: 0; }
/* The window is small and sits in the bottom right corner, so nearly the whole screenshot is in view. It is part of
   the flow (the height of the picture follows it) and negative margins push it just off the right and bottom edge,
   at every width. */
/* Tiles in one row are equally high; the window stays at the bottom of the taller one */
.td-tiles .tile-art { display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; aspect-ratio: auto; }
.td-tiles .tile-window { position: relative; left: auto; top: auto; width: 58%; margin: 0 -4% -1.75rem auto; }
/* On a wide tile the window rises next to the button, so the tile is lower and the screenshot stays in view */
@media (min-width: 64em) { .td-tiles .tile-art { margin-top: -3.4rem; } .td-tiles .tile-window { width: 52%; } }
.td-tile-tag { display: inline-block; margin-left: .4rem; padding: .18rem .5rem; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .45); font: 600 .7rem/1.2 var(--body); vertical-align: .15em; color: rgba(255, 255, 255, .9); }
.td-tile-wb { --tile-bg: radial-gradient(120% 140% at 0% 0%, #4b93c2 0%, #2a6d9c 42%, #143c5c 100%); }
.td-tile-wb .tile-promise em { color: #c4e6fa; }
.td-tile-wb .tile-icon { border-radius: 14px; }
/* The Whiteboard screenshot is lower than that of Playbook: its window runs less far off the edges (always 10 px
   right and 12 px below), so the goal at the bottom of the pool stays in view */
.td-tiles .td-tile-wb .tile-window { margin-right: -10px; margin-bottom: -12px; }
@media (min-width: 64em) { .td-tiles .td-tile-wb .tile-window { width: 50%; } }
/* The tag stays on the line of the name: on a narrow tile it gets smaller instead of dropping to a next line */
.td-tiles .tile-name { white-space: nowrap; }
@media (max-width: 60em) { .td-tile-tag { margin-left: .3rem; padding: .12rem .38rem; font-size: .6rem; } }
@media (max-width: 23em) { .td-tiles .tile-head { gap: .6rem; } .td-tiles .tile-icon { width: 40px; height: 40px; } .td-tiles .tile-text { padding-inline: 1.25rem; } }
@media (max-width: 43.99em) { .td-tiles { grid-template-columns: 1fr; } .td-tiles .tile-window { width: 70%; } }

/* ==== Footer: lower than in the library; on a wide screen the logo and the links share one row ==== */
.footer { padding: 1.5rem 0 1.25rem; }
.footer-in { gap: .75rem 2rem; }
@media (min-width: 52em) {
  .footer-in { grid-template-columns: auto 1fr; align-items: center; }
  .footer-links { justify-content: flex-end; }
  .footer-legal { grid-column: 1 / -1; }
}

/* ==== Text page (privacy): one readable column ==== */
.td-doc { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.td-doc .wrap > * { max-width: 44rem; }
.td-doc h1 { overflow-wrap: break-word; }
/* Long Dutch words in the title break with a hyphen only on a narrow screen */
@media (max-width: 36em) { :lang(nl) .td-doc h1 { hyphens: auto; } }
.td-doc h2 { margin: 2.5rem 0 .75rem; font-size: 1.35rem; }
.td-doc li { margin-bottom: .5rem; }
.td-doc p > strong:first-child { font-variant-numeric: tabular-nums; }
.td-doc .td-doc-date { color: var(--muted); font-size: .95rem; }
