/* ==========================================================================
   De Sales Guys — pages.css (subpagina's)
   ========================================================================== */

/* Over ons --------------------------------------------------------------- */

.section.story {
  padding-top: clamp(1rem, 3vw, 2.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.story .split .img-frame {
  aspect-ratio: 3 / 2;
}

.section.values {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.values .card h3 {
  margin-bottom: 0.6rem;
}

.values .card .icon-box {
  margin-bottom: 1.25rem;
}

.tagline-block {
  text-align: center;
  padding-block: clamp(1.5rem, 4vw, 3.5rem);
}

.tagline-block .big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.tagline-block .big span {
  display: block;
}

.tagline-block .big .it {
  color: var(--red);
}

.tagline-block p {
  max-width: 36rem;
  margin: 1.75rem auto 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.timeline div {
  border-top: 2px solid var(--line-strong);
  padding-top: 1.25rem;
  position: relative;
}

.timeline div::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 40%;
  height: 2px;
  background: var(--red);
}

.timeline .year {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.timeline h4 {
  margin-bottom: 0.4rem;
}

.timeline p {
  font-size: 0.9rem;
}

/* Vacatures -------------------------------------------------------------- */

.job-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.job-card .job-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.job-card .job-top .pill {
  flex-shrink: 0;
}

.job-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.job-card .job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.job-card .job-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.job-card .job-meta i {
  color: var(--red);
}

.job-card p {
  font-size: 0.95rem;
  flex: 1;
}

.job-card .job-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.job-card .job-foot .btn {
  width: 100%;
}

.job-card .salary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  white-space: nowrap;
}

.job-card .salary small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Vacature detail */
.job-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.job-body h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
}

.job-body h2:first-child {
  margin-top: 0;
}

.job-body p {
  margin-bottom: 1rem;
}

.job-body .check-list {
  margin-bottom: 1rem;
}

.job-aside {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.job-aside .form-card {
  margin-bottom: 1.25rem;
}

.job-facts {
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.job-facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.job-facts li:last-child {
  border-bottom: none;
}

.job-facts li span:first-child {
  color: var(--muted);
}

.job-facts li span:last-child {
  font-weight: 600;
  text-align: right;
}

/* Verdiensten ------------------------------------------------------------ */

.earn-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.earn-tiers .card {
  display: flex;
  flex-direction: column;
}

.earn-tiers .card.featured {
  border-color: rgba(200, 16, 46, 0.5);
  background: linear-gradient(160deg, rgba(200, 16, 46, 0.18), var(--graphite) 55%);
}

.earn-tiers .card .pill {
  align-self: flex-start;
  margin-bottom: 1.25rem;
}

.earn-tiers .card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.earn-tiers .card .sub {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.earn-tiers .card .amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.1vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.earn-tiers .card .amount small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 0.25rem;
}

.earn-tiers .card .check-list {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.growth-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--graphite);
}

.growth-path > div {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--line);
  position: relative;
}

.growth-path > div:last-child {
  border-right: none;
}

.growth-path > div::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--graphite);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  z-index: 1;
}

.growth-path > div:last-child::after {
  display: none;
}

.growth-path .level {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.growth-path h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.growth-path p {
  font-size: 0.88rem;
}

.growth-path > div.current {
  background: linear-gradient(180deg, rgba(200, 16, 46, 0.14), rgba(200, 16, 46, 0));
}

/* Academy ---------------------------------------------------------------- */

.program-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.program-days .card .day {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.program-days .card h3 {
  margin-bottom: 0.6rem;
}

.program-days .card p {
  font-size: 0.92rem;
}

.stats-academy {
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 1.5rem 2.5rem;
}

.stats-academy .stat .num {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  white-space: nowrap;
}

/* Vestigingen ------------------------------------------------------------ */

.location-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.location-detail .photo {
  min-height: 300px;
  position: relative;
}

.location-detail .photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-detail .info {
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.location-detail .info h2 {
  font-size: 2rem;
  margin: 0.75rem 0 1rem;
}

.location-detail .info ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}

.location-detail .info li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: rgba(245, 243, 239, 0.85);
  font-size: 0.95rem;
}

.location-detail .info li i {
  color: var(--red);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Contact ---------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 1rem;
}

.contact-cards .card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-cards .card .icon-box {
  margin: 0;
  flex-shrink: 0;
}

.contact-cards .card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.contact-cards .card p {
  font-size: 0.92rem;
}

.contact-cards .card a {
  color: var(--chalk);
}

/* Solliciteren ----------------------------------------------------------- */

.apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.apply-side .check-list {
  margin: 1.75rem 0 2rem;
}

.apply-side .img-frame {
  margin-top: 1rem;
}

/* Legal ------------------------------------------------------------------ */

.legal {
  max-width: 46rem;
}

.legal h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 0.75rem;
}

.legal h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

.legal p,
.legal li {
  color: var(--muted);
  margin-bottom: 0.9rem;
  line-height: 1.75;
}

.legal ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal .updated {
  font-size: 0.85rem;
  color: var(--faint);
}

/* Bedankt ---------------------------------------------------------------- */

.thanks {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.thanks .icon-box {
  width: 72px;
  height: 72px;
  font-size: 2.2rem;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1000px) {
  .timeline,
  .growth-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .growth-path > div:nth-child(2)::after,
  .growth-path > div:nth-child(2) {
    border-right: none;
  }

  .growth-path > div:nth-child(2)::after {
    display: none;
  }

  .growth-path > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .earn-tiers,
  .program-days {
    grid-template-columns: 1fr;
  }

  .job-detail,
  .contact-grid,
  .apply-grid {
    grid-template-columns: 1fr;
  }

  .job-aside {
    position: static;
  }

  .location-detail {
    grid-template-columns: 1fr;
  }

  .location-detail .photo {
    min-height: 240px;
  }
}

@media (max-width: 720px) {
  .timeline,
  .growth-path {
    grid-template-columns: 1fr;
  }

  .growth-path > div {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .growth-path > div::after {
    display: none;
  }

  .growth-path > div:last-child {
    border-bottom: none;
  }

  .story .split .img-frame {
    aspect-ratio: 4 / 3;
  }

  .job-card .job-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .job-card .job-foot .btn {
    width: 100%;
  }
}
